Skip to main content

Expo Setup (6.x)

Requirements​

  • Expo SDK 52+
  • Development build (Expo Go is not supported)
  • New Architecture enabled

Install​

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

app.json​

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

Optional plugin options:

["react-native-pdf-jsi", { "ocr": true, "iosFileSharing": true }]

Prebuild and run​

npx expo prebuild --clean
npx expo run:ios
npx expo run:android

Notes​

  • Plugin writes iOS file-sharing keys unless disabled.
  • Plugin ensures New Architecture and Nitro dependency checks.
  • For restricted build environments, use plugin options pdfiumDir or pdfiumUrl.

Canonical reference: