Skip to content

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.

License

Notifications You must be signed in to change notification settings

ApryseSDK/pdftron-react-and-react-native-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

57905d1 · Jul 21, 2021

History

9 Commits
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Jul 21, 2021
Sep 24, 2020

Repository files navigation

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.

demo

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 ..
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
npm run android

Guides

Contributing

See contributing.

License

See license.