Some test text!
This guide will help you integrate a free trial of the PDFTron SDK into your iOS applications using React Native. Your free trial includes unlimited trial usage and support from solution engineers.
For simplicity the following guide is based on a boilerplate react native app for
react-native init MyApp with git diff syntax for adding and removing lines from the boilerplate app.
If using yarn, do:
yarn global add react-native-cli
First, follow the official getting started guide on setting up the React Native environment, setting up the iOS environment, setting up the Android environment, and creating a React Native project, the following steps will assume your app is created through
react-native init MyApp.
MyApp folder, install
react-native-pdftron by calling:
yarn add github:PDFTron/pdftron-react-native
yarn add @react-native-community/cli --dev
yarn add @react-native-community/cli-platform-android --dev
yarn add @react-native-community/cli-platform-ios --dev
npm install github:PDFTron/pdftron-react-native --save
npm install @react-native-community/cli --save-dev
npm install @react-native-community/cli-platform-android --save-dev
npm install @react-native-community/cli-platform-ios --save-dev
Podfile in the
ios folder, add:
target 'MyApp' do use_frameworks! pod 'PDFNet', podspec: 'https://www.pdftron.com/downloads/ios/cocoapods/pdfnet/latest.podspec' pod 'RNPdftron', :path => '../node_modules/react-native-pdftron' end
ios folder, run:
(Optional) If you need a close button icon, you will need to add the PNG resources to
MyApp as well, i.e.
Get the answers you need: Support