File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ # Usage
2+
3+ 1 . Install dependencies by running ` yarn install ` . This will also run ` pod install ` for iOS automatically.
4+ 2 . Build and run the app by running:
5+ - iOS: ` yarn ios `
6+ - Android: ` yarn android `
Original file line number Diff line number Diff line change 1616 "deprecated-react-native-prop-types" : " ^2.3.0" ,
1717 "react" : " ^18.0.0" ,
1818 "react-native" : " ^0.69.1" ,
19- "react-native-pdftron" : " file:../ "
19+ "react-native-pdftron" : " github:PDFTron/pdftron-react-native "
2020 },
2121 "devDependencies" : {
2222 "@babel/core" : " ^7.12.9" ,
Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ export class DocumentView extends PureComponent {
883883 setColorPostProcessMode = ( colorPostProcessMode ) => {
884884 const tag = findNodeHandle ( this . _viewerRef ) ;
885885 if ( tag != null ) {
886- DocumentViewManager . setColorPostProcessMode ( tag , colorPostProcessMode ) ;
886+ return DocumentViewManager . setColorPostProcessMode ( tag , colorPostProcessMode ) ;
887887 }
888888 return Promise . resolve ( ) ;
889889 } ;
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-pdftron" ,
33 "title" : " React Native Pdftron" ,
4- "version" : " 3.0.4-2 " ,
4+ "version" : " 3.0.4-3 " ,
55 "description" : " React Native Pdftron" ,
66 "main" : " ./lib/index.js" ,
77 "typings" : " index.ts" ,
You can’t perform that action at this time.
0 commit comments