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 16
16
"deprecated-react-native-prop-types" : " ^2.3.0" ,
17
17
"react" : " ^18.0.0" ,
18
18
"react-native" : " ^0.69.1" ,
19
- "react-native-pdftron" : " file:../ "
19
+ "react-native-pdftron" : " github:PDFTron/pdftron-react-native "
20
20
},
21
21
"devDependencies" : {
22
22
"@babel/core" : " ^7.12.9" ,
Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ export class DocumentView extends PureComponent {
883
883
setColorPostProcessMode = ( colorPostProcessMode ) => {
884
884
const tag = findNodeHandle ( this . _viewerRef ) ;
885
885
if ( tag != null ) {
886
- DocumentViewManager . setColorPostProcessMode ( tag , colorPostProcessMode ) ;
886
+ return DocumentViewManager . setColorPostProcessMode ( tag , colorPostProcessMode ) ;
887
887
}
888
888
return Promise . resolve ( ) ;
889
889
} ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-pdftron" ,
3
3
"title" : " React Native Pdftron" ,
4
- "version" : " 3.0.4-2 " ,
4
+ "version" : " 3.0.4-3 " ,
5
5
"description" : " React Native Pdftron" ,
6
6
"main" : " ./lib/index.js" ,
7
7
"typings" : " index.ts" ,
You can’t perform that action at this time.
0 commit comments