react-native-pdf-lib
react-native-pdf-lib copied to clipboard
Saving the pdf created from internal storage to external storage
Hi, I am looking to create a pdf using the createPDF and the function works fine but
- I do not know how to view the created PDF and
- I do not know how to move the created PDF from internal storage to external storage (so that it can be shared/viewed outside the app)
Thanks!
When it returns the path, you should be able to load the file from there, e.g. something like this:
<PDFPage pdfPath={`${RNFetchBlob.fs.dirs.DocumentDir}/${this.photoBook!.contentPDFPath!}`} />