{"repo":"rumax/react-native-PDFView","free":true,"listed":false,"github":"https://github.com/rumax/react-native-PDFView","clone":"git clone https://github.com/rumax/react-native-PDFView.git","description":"📚 PDF viewer for React Native","language":"Java","stars":309,"topics":["react-native","react-component","pdf","pdf-viewer","javascript","android","ios","hacktoberfest2020","hacktoberfest"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-view-pdf Library for displaying PDF documents in react-native - android - uses Android PdfViewer. Targets minSdkVersion 21 (required by setClipToOutline) and above. By default stable version 2.8.2 is used. It's also possible to override it and use 3.1.0-beta.1 (this version allows to handle links, etc. and will be used when Android PdfViewer stable version is released). To change the version, define it in your build file: Barteksc PdfViewer uses JCenter, which should be read-only indefinitely, but in case the host project does not use it, there is a possibility to use mhiew/AndroidPdfViewer which is a fork published on mavenCentral. To use it, define the following configuration in your gradle script: - ios - uses WKWebView. Targets iOS9.0 and above - zero NPM dependencies Getting started $ npm install react-native-view-pdf --save Linking From RN 0.60 there is no need to link - Native Modules are now Autolinked Mostly automatic installation $ react-native link If it doesn't work follow the official react native documentation Using CocoaPods In your Xcode project directory open Podfile and add the following line: And install: Android 1. Open up android/app/src/main/java/[...]/MainApplication.java - Add import com.rumax.reactnative.pdfviewer.PDFViewPackage; to the imports at the top of the file - Add new PDFViewPackage() to the list returned by the getPackages() method 2. Append the following lines to android/settings.gradle : 3. Insert the following lines inside th","default_branch":null,"files":null,"tree":[],"storefront":"/r/rumax","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rumax/react-native-PDFView/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."}