question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
matiasperzcommented, Nov 28, 2019

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/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found