diff --git a/example/README.md b/example/README.md new file mode 100644 index 00000000..c104dba2 --- /dev/null +++ b/example/README.md @@ -0,0 +1,6 @@ +# Usage + +1. Install dependencies by running `yarn install`. This will also run `pod install` for iOS automatically. +2. Build and run the app by running: + - iOS: `yarn ios` + - Android: `yarn android` \ No newline at end of file diff --git a/example/package.json b/example/package.json index 5e80db45..51f5db9f 100644 --- a/example/package.json +++ b/example/package.json @@ -16,7 +16,7 @@ "deprecated-react-native-prop-types": "^2.3.0", "react": "^18.0.0", "react-native": "^0.69.1", - "react-native-pdftron": "file:../" + "react-native-pdftron": "github:PDFTron/pdftron-react-native" }, "devDependencies": { "@babel/core": "^7.12.9", diff --git a/lib/src/DocumentView/DocumentView.js b/lib/src/DocumentView/DocumentView.js index 15d3b14d..8efa59c3 100644 --- a/lib/src/DocumentView/DocumentView.js +++ b/lib/src/DocumentView/DocumentView.js @@ -883,7 +883,7 @@ export class DocumentView extends PureComponent { setColorPostProcessMode = (colorPostProcessMode) => { const tag = findNodeHandle(this._viewerRef); if (tag != null) { - DocumentViewManager.setColorPostProcessMode(tag, colorPostProcessMode); + return DocumentViewManager.setColorPostProcessMode(tag, colorPostProcessMode); } return Promise.resolve(); }; diff --git a/package.json b/package.json index 214340fb..24fa33c2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-pdftron", "title": "React Native Pdftron", - "version": "3.0.4-2", + "version": "3.0.4-3", "description": "React Native Pdftron", "main": "./lib/index.js", "typings": "index.ts",