Skip to content

Instantly share code, notes, and snippets.

@diaraujo13
Created February 5, 2020 14:04
Show Gist options
  • Save diaraujo13/482764615d272c3cdba8d14e27d7e3ef to your computer and use it in GitHub Desktop.
Save diaraujo13/482764615d272c3cdba8d14e27d7e3ef to your computer and use it in GitHub Desktop.
PDF Reader in React Native
import PDFReader from "rn-pdf-reader-js"
const PDF = (file) => {
const uri = File.path(file.url);
return <PDFReader source={{ uri }} withScroll={true} />
};
export default PDF;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment