Monorepo for react-native-nitro-pdf-max, a native PDF viewer package for React Native using Nitro Modules.
The package lives in packages/react-native-nitro-pdf-max, with a React Native CLI example app in apps/example.
- iOS: PDFKit
PDFView - Android: AndroidX PDF
androidx.pdf:pdf-viewer-fragment:1.0.0-alpha18
AndroidX PDF currently requires minSdkVersion 28 and compileSdkExtension 19. The package intentionally accepts only local document URIs; downloading, auth, cache ownership, and file-provider policy stay in the host app.
bun install
bun run specs
bun run typecheck
bun run lint
bun run build
bun run example:typecheck
bun run example:lint
bun run pack:dryAndroid:
cd apps/example/android
ANDROID_HOME="$HOME/Library/Android/sdk" \
ANDROID_SDK_ROOT="$HOME/Library/Android/sdk" \
mise x java@temurin-21 -- ./gradlew :app:assembleDebugiOS:
cd apps/example/ios
bundle install
bundle exec pod install
xcodebuild -workspace PdfViewerExample.xcworkspace -scheme PdfViewerExample -configuration Debug -destination 'generic/platform=iOS Simulator' build