Ad

React Native Pdf View

- 1 answer

Good day mates,

I'm currently having a problem with our project. I'd like to rerender a pdf with fields to contain texts and a signature, are there any ways or solution available to get this?

Please direct me to the right direction. :D

Ad

Answer

Did you try react-native-view-pdf package? It's pretty simple and has zero NPM dependencies:

import PDFView from 'react-native-view-pdf';

<View style={{ flex: 1 }}>
  <PDFView
    style={{ flex: 1 }}
    onError={(error) => console.log('onError', error)}
    onLoad={() => console.log('PDF rendered from url')}
    resource="http://www.pdf995.com/samples/pdf.pdf"
    resourceType="url"
  />
</View>
Ad
source: stackoverflow.com
Ad