A React Native component for displaying PDF files with cross-platform support for iOS and Android.
react-native-pdf-view is a React Native library that provides a native PDF viewer component for mobile applications. It enables developers to embed and display PDF documents directly within their iOS and Android apps, offering a seamless viewing experience without requiring external applications.
React Native developers building iOS and Android applications that need to display PDF files within the app interface.
Developers choose this library for its cross-platform support with a unified JavaScript API and native performance leveraging iOS and Android PDF rendering capabilities for smooth scrolling and zooming.
React Native PDF View
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a unified JavaScript API for both iOS and Android, as highlighted in the key features, ensuring consistent behavior across platforms without platform-specific code.
Leverages native PDF rendering capabilities for smooth scrolling and zooming, offering a better user experience compared to web-based alternatives, per the README's emphasis on native performance.
Includes programmatic zoom adjustment and page navigation features, allowing developers to dynamically control the PDF view, as demonstrated in the example code with setNativeProps.
Offers an onLoadComplete callback to trigger actions after PDF loading, useful for synchronizing UI updates, as specified in the configuration table.
Only supports loading PDFs from absolute file paths or Android assets, lacking built-in functionality for URLs or network streams, which restricts use cases involving online content.
Requires manual editing of Gradle files and Java code for Android integration, as detailed in the installation steps, making it error-prone and unsuitable for quick prototyping or Expo users.
The README highlights breaking changes tied to older React Native versions (e.g., 0.40, 0.19), suggesting poor maintenance and potential issues with newer RN releases, increasing upgrade risks.