react-native-html-to-pdf
react-native-html-to-pdf copied to clipboard
Preview PDF after creating
can we preview PDF with this library with file path?
I have the same question
This will help https://www.youtube.com/watch?v=4CBUXv8d0I0
cannot find the file in iOS
You can use something like this:
import FileViewer from 'react-native-file-viewer';
let file = await RNHTMLtoPDF.convert({
html: html,
fileName: 'My PDF File',
directory: 'Documents',
});
if(file?.filePath) {
FileViewer.open(filePath);
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.