React Native PDF library

Nutrient React Native SDK provides a unified solution for viewing, annotating, and editing PDFs on both Android and iOS. With a single SDK, developers can seamlessly integrate powerful PDF functionality into any React Native application, ensuring a consistent experience across platforms.

Latest release: Discover what’s new! Check out our changelog for the latest release updates. Read more
Nutrient Copilot (preview): Be among the first to try our GitHub Copilot extension, tailored specifically for developers using Nutrient products. Built on top of GitHub Copilot, it integrates seamlessly with your favorite IDE and connects directly to Nutrient’s official documentation. Try now for free

Comparing React Native PDF libraries

The following comparison highlights the key features and capabilities of Nutrient React Native SDK and open source React Native PDF libraries. Nutrient React Native SDK is particularly suited for enterprise-level applications that require robust PDF functionality, while open source alternatives are more appropriate for basic PDF viewing and simple use cases.

Feature Open source libraries Nutrient React Native SDK
PDF viewing and rendering Basic capabilities Comprehensive PDF viewing with high-fidelity rendering and customizable user interface (UI) components
Annotations and form handling Limited support through custom components Advanced features, including annotations, highlighting, commenting, and real-time collaboration
Processing and optimization Basic features Advanced PDF generation and manipulation capabilities, including merging and splitting PDFs
Digital signatures No native support Complete support for electronic signatures and form processing
Security and encryption N/A Enterprise-grade security and encryption features
Cross-platform compatibility N/A Cross-platform compatibility ensuring consistent behavior across iOS and Android

Getting started

The Nutrient React Native dependency is installed from the GitHub repository and not the npm registry. To install the dependency, execute the command — yarn add react-native-pspdfkit@github:PSPDFKit/react-native — in your project directory. If you’re using npm, execute the command — npm install github:PSPDFKit/react-native. For detailed step-by-step instructions, refer to the getting started on React Native guide.

File type support

PDF documents
PDF
Image documents

Programmatically create annotations

Nutrient React Native SDK offers APIs to manipulate (get, add, and remove) annotations programmatically. To add an ink annotation programmatically, create an InkAnnotation object and use the addAnnotations API. For more information, refer to the programmatically create annotations in React Native guide.

Programmatically fill PDF form fields

Nutrient React Native SDK enables you to fill form fields programmatically. Each form field has a fully qualified name used to identify and retrieve a specific form field object before filling it. The following example shows how to fill the value of a form field with a fully qualified name (formFieldName) and two radio buttons with fully qualified names (radioFieldName_0 and radioFieldName_1). For more information, refer to the fill PDF form fields programmatically in React Native guide.

Programmatically add a signature

Nutrient React Native SDK enables you to seamlessly integrate electronic signatures into PDF documents within your React Native app. For example, to create an ink signature in iOS, use the following code snippet. For more information, refer to the sign PDFs in React Native guide.

Customizing PDF viewer

Nutrient React Native SDK offers a few ways to show or hide the UI. For example, the UI view mode can be changed using the userInterfaceViewMode configuration option. The following code snippet shows how to use the automatic view mode. For more information, refer to the guides for customizing the UI.

PDF collaboration

Nutrient Instant is our prebuilt solution for synchronizing annotations across multiple concurrent users, devices, or sessions. It offers developers a self-hosted solution that handles document viewing on any platform, data management, conflict resolution, version tracking, diffing, and merging. It’s a licensable component that’s included as part of Document Engine, which can be used together with Nutrient React Native SDK. For more information, refer to the guides for Instant synchronization.

FAQ

Below are a few frequently asked questions about Nutrient React Native SDK.

Can I customize the appearance of the PDF viewer in my React Native app? Yes. The Nutrient React Native PDF SDK enables extensive customization of the viewer’s UI to align with your app’s design.
Can the SDK be used in offline scenarios? Yes. The SDK supports offline usage, enabling users to access and interact with PDF documents without an active internet connection.
Is there a free trial available for Nutrient React Native SDK? Yes. You can try the SDK for free before purchasing a license. Your free trial unlocks the full capabilities of our SDK and includes support from our solutions engineers.
Does the SDK support dark mode? Yes. The PDF viewer in Reader View supports dark mode for a better user experience in low-light environments.
Is the SDK compatible with both Expo and React Native CLI? Currently, the SDK is designed for React Native CLI. Expo support requires additional configuration. For more information, refer to the How to use Nutrient React Native SDK with Expo blog post.

Free trial

Start your free trial for unlimited access and expert support.