Skip to content

Repository files navigation

react-native-nitro-pdf-max

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.

Native Renderers

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

Commands

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:dry

Native Validation

Android:

cd apps/example/android
ANDROID_HOME="$HOME/Library/Android/sdk" \
ANDROID_SDK_ROOT="$HOME/Library/Android/sdk" \
mise x java@temurin-21 -- ./gradlew :app:assembleDebug

iOS:

cd apps/example/ios
bundle install
bundle exec pod install
xcodebuild -workspace PdfViewerExample.xcworkspace -scheme PdfViewerExample -configuration Debug -destination 'generic/platform=iOS Simulator' build

About

Native PDF viewer for React Native powered by Nitro, PDFKit, and AndroidX PDF.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages