Skip to content

Commit

Permalink
Update sample dependency to point to the repo directly (#685)
Browse files Browse the repository at this point in the history
* update dependency

* Updating package version

* adds readme

* Updating JS files

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
sgong-pdftron and github-actions[bot] authored Mar 22, 2024
1 parent 40b45fe commit ebb2b6f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -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`
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion lib/src/DocumentView/DocumentView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit ebb2b6f

Please sign in to comment.