Open Abhiral opened 8 months ago
My code:
const createPDF = async () => { try { const options = { html: '
PDF TEST
const file = await RNHTMLtoPDF.convert(options); console.log('File Path:', file.filePath); alert(file.filePath); } catch (e) { console.log('Error Message:', e); }
};
I have the same problem
Any solution?
If you are using iOS, go to the ios folder and run pod install or bundle exec pod install to install all the dependencies in the iOS project
pod install
bundle exec pod install
My code:
const createPDF = async () => { try { const options = { html: '
PDF TEST
', fileName: 'test', directory: 'Documents', };};