Skip to content

Commit ebb2b6f

Browse files
Update sample dependency to point to the repo directly (#685)
* update dependency * Updating package version * adds readme * Updating JS files --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 40b45fe commit ebb2b6f

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

example/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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`

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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",

lib/src/DocumentView/DocumentView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)