https://github.com/aprysesdk/pdftron-react-and-react-native-sample
A sample project that uses Expo and shows how to create a PDF viewer app for both web and mobile with a single codebase between React and React Native.
https://github.com/aprysesdk/pdftron-react-and-react-native-sample
android expo ios pdf pdftron react react-native view-pdf webviewer
Last synced: 10 months ago
JSON representation
A sample project that uses Expo and shows how to create a PDF viewer app for both web and mobile with a single codebase between React and React Native.
- Host: GitHub
- URL: https://github.com/aprysesdk/pdftron-react-and-react-native-sample
- Owner: ApryseSDK
- License: other
- Created: 2020-09-24T19:20:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-21T20:08:44.000Z (almost 5 years ago)
- Last Synced: 2025-06-12T13:49:29.635Z (about 1 year ago)
- Topics: android, expo, ios, pdf, pdftron, react, react-native, view-pdf, webviewer
- Language: Java
- Homepage: https://www.pdftron.com/documentation/
- Size: 282 KB
- Stars: 6
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# PDFTron React and React Native PDF Viewer Sample
This sample project uses Expo and shows how to create a PDF viewer app for both web and mobile with a single codebase between React and React Native.

## Install
```
git clone https://github.com/PDFTron/pdftron-react-and-react-native-sample.git
cd pdftron-react-and-react-native-sample
npm install
```
## Run
### Web
```
npm run web
```
### iOS
1. Install dependencies
```
cd ios
pod install
cd ..
```
2.
```
npm run ios
```
### Android
1. Create a `local.properties` file inside the `android` folder with your Android SDK location, for example:
```
ndk.dir=/Users/pdftron/Library/Android/sdk/ndk-bundle
sdk.dir=/Users/pdftron/Library/Android/sdk
```
2.
```
npm run android
```
## Guides
- https://www.pdftron.com/documentation/web
- https://www.pdftron.com/documentation/ios
- https://www.pdftron.com/documentation/android
## Contributing
See [contributing](./CONTRIBUTING.md).
## License
See [license](./LICENSE).
