Custom Save Directory - Error: RNHTMLtoPDF error: Could not create folder structure.
See original GitHub issue“react-native”: “0.59.9”, “react-native-html-to-pdf”: “^0.8.0”
let options = {
html: ${s.data.receipt.receiptformatted}
,
fileName: comprovante-multify-${s.data.transactionId}
,
directory: ${RNFS.ExternalStorageDirectoryPath}/Downloads
,
};
I´ve tried to put only ‘docs’ or ‘downloads’, same problem. Any help?
I´ve tried without RNFS too.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
React Native Error - Could not create folder structure
I am getting following error. Possible Unhandled Promise Rejection (id: 0): Error: RNHTMLtoPDF error: Could not create folder ...
Read more >Could not create folder structure-React Native - appsloveworld
Coding example for the question React Native Error: RNHTMLtoPDF error: Could not create folder structure-React Native.
Read more >Example to Make PDF in React Native from HTML Text
Hi Piyush, In the first line you can see “Could not create folder structure.” which means it is unable to create the destination...
Read more >Junior vs Senior React Folder Structure - How To Organize ...
FREE React Hooks Course: https://courses.webdevsimplified.com/react-hooks-simplifiedReact is an unopinionated framework, but with that ...
Read more >The Watch Folder Profiles Page: General Tab
In the General tab, you can create, name, and set up Watch Folders, select a conversion ... Errors: Source file location after an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For anyone who is having this same issue, it is a permission error. Try giving storage permissions in the app configuration manually, or see this tutorial where it’s explained how to do it programmatically: https://aboutreact.com/make-pdf-in-react-native-from-html-text/
Please, check my comment https://github.com/christopherdro/react-native-html-to-pdf/issues/189#issuecomment-849999309