Skip to main content

Installation (6.x)

Prerequisites​

  • React Native 0.76+
  • New Architecture enabled
  • iOS 13+
  • Android minSdk 21+

Install​

npm install react-native-pdf-jsi react-native-nitro-modules

Then on iOS:

cd ios && pod install

Expo​

npx expo install react-native-pdf-jsi react-native-nitro-modules

Add plugin in app.json:

{
"expo": {
"plugins": [["react-native-pdf-jsi", { "ocr": false }]]
}
}

Then run:

npx expo prebuild --clean

Important 6.x notes​

  • react-native-blob-util is no longer required by the library.
  • react-native-nitro-modules is required.
  • Viewer API in 6.x is PdfView (not the legacy class-component API).

Next: Quick Start (6.x)