{"repo":"douglasjunior/react-native-pdf-renderer","free":true,"listed":false,"github":"https://github.com/douglasjunior/react-native-pdf-renderer","clone":"git clone https://github.com/douglasjunior/react-native-pdf-renderer.git","description":"⚛ A zoomable, blazing fast, zero dependencies, pure native, typed PDF Renderer for Android and iOS.","language":"Java","stars":295,"topics":["android","ios","pdf","pdfkit","pdfrenderer","react-native"],"license":"MIT","category":"mobile-apps","readme_excerpt":"React-Native Pdf Renderer ⚛ A zoomable, blazing fast, zero dependencies, pure native, typed PDF Renderer for Android and iOS. It uses PdfRenderer for Android and PdfKit for iOS. Android iOS - - Why another PDF renderer? The main reason why I create this library is to avoid using third-party native dependencies, like com.github.TalbotGooday:AndroidPdfViewer , com.github.mhiew:android-pdf-viewer , react-native-blob-util or even react-native-webview . But why? Every React Native developer knows (or will discover soon) the pain of updating the React Native ecosystem when a new version of Android or iOS comes out, so here we want to avoid this pain as much as possible. Requirements - React Native = 0.71.0 - iOS = 12.0 - Android = API 21 Install Install dependency package Or Go to the folder your-project/ios and run pod install , and you're done. Android specific (optional) Customize the androidx.recyclerview:recyclerview version by setting ext in your android/build.gradle file. Example: Basic usage There is only one component that you need to use to render the PDF file. The source prop must point to a file stored inside the device memory. If the file is online, you can use some third-party library like expo-file-system , rn-fetch-blob , or react-native-blob-util to download and save it locally. For more details, see the Sample Project. PdfRendererView props Name Type Default Description - - - - source string Path to a file stored on the device. distanceBetweenPages number 16 Dista","default_branch":null,"files":null,"tree":[],"storefront":"/r/douglasjunior","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/douglasjunior/react-native-pdf-renderer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}