A zoomable, blazing fast, zero dependencies, pure native, typed PDF Renderer for Android and iOS. It uses PdfRenderer for Android and PdfKit for iOS.
How to use it:
1. Install & import.
# Yarn $ yarn add react-native-pdf-renderer # NPM $ npm i react-native-pdf-renderer
import PdfRendererView from 'react-native-pdf-renderer';
2. Basic usage.
const App = () => { return ( <SafeAreaView style={{flex: 1}}> <PdfRendererView style={{backgroundColor: 'black'}} source="/path/to/file.pdf" distanceBetweenPages={10} maxZoom={10} onPageChange={(current, total) => { console.log(current, total); }} /> </SafeAreaView> ); } export default App;
Preview:
Download Details:
Author: douglasjunior
Live Demo: View The Demo
Download Link: Download The Source Code
Official Website: https://github.com/douglasjunior/react-native-pdf-renderer
License: MIT