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.
git clone https://github.com/PDFTron/pdftron-react-and-react-native-sample.git
cd pdftron-react-and-react-native-sample
npm install
npm run web
- Install dependencies
cd ios
pod install
cd ..
npm run ios
- Create a
local.properties
file inside theandroid
folder with your Android SDK location, for example:
ndk.dir=/Users/pdftron/Library/Android/sdk/ndk-bundle
sdk.dir=/Users/pdftron/Library/Android/sdk
npm run android
- https://www.pdftron.com/documentation/web
- https://www.pdftron.com/documentation/ios
- https://www.pdftron.com/documentation/android
See contributing.
See license.