Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NSDK-168
Overview:
This PR replaces the sample app in the
example
folder with a more comprehensive app instead of a standalone PDF viewer in order to better demonstrate how the wrapper can be embedded in an existing app and how its API can be used.The app is a simple file manager within the app's folder with the ability to add files from the device's local storage or from the web, plus other miscellaneous functionalities. It uses this package for opening PDF files and for converting Office files to PDF.
The app is built using Expo SDK 46 with bare workflow (ejected) and React Native version 0.69.4.
Relevant changes are in the file
App.tsx
and the files under thecomponents
directory (other changes are due to React Native version changes and using Expo). Testing future changes can now be done by modifying thePDFViewer.tsx
file instead ofApp.js
.Testing:
node_modules
, and runyarn install
node_modules
, deletereact-native-pdftron
, clone this repo and re-name it toreact-native-pdftron
.yarn ios
yarn android