Some test text!


Integrate iOS PDF library with React Native

See here for the get started guide for using the PDFTron React Native SDK on Android.

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.

Get the React Native source code


  • PDFTron SDK >= 9.1.0
  • react-native >= 0.60.0
  • npm or yarn
No trial license key required.
The trial of PDFTron SDK works without a license key. A commercial license key is required for use in a production environment. Please fill out our licensing form if you do not have a valid license key.
Keep your commercial license key confidential.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).


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.

  1. If using yarn, do: yarn global add react-native-cli

  2. 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.

  3. In MyApp folder, install react-native-pdftron by calling:

//@data {"ga":8210654715}// 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 yarn install orshell //@data {"ga":2265342787}// 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 ```

  1. Open Podfile in the ios folder, add:

    target 'MyApp' do
        pod 'PDFNet', podspec: ''
        pod 'RNPdftron', :path => '../node_modules/react-native-pdftron'
  2. In the ios folder, run:

    pod install
  3. (Optional) If you need a close button icon, you will need to add the PNG resources to MyApp as well, i.e. ic_close_black_24px.

Next step

View a document

Get the answers you need: Support