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.

directory: 'docs' Crashes the application!

See original GitHub issue

I used this module 1 month ago and it went so good , already passed the testing team and we published the application. some days ago I saw crash reports and found out that exporting pdf simply not working anymore and crashes the app! I began to modify until finding the reason that is the directory!

let options = {
        html: <p>Some text</p>,
        fileName: 'pdfFile',
        directory: 'docs',
}

If I remove directory line or change it to not to be ‘docs’, it will export a pdf file to the system cache directory: /data/user/0/com.appName/cache/

also changing it to ‘Documents’ didn’t solve the problem and I still get the file at cache directory.
why this happened and why the app cannot move the exported file from cache to the /Documents directory??

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Gazfaycommented, Dec 27, 2018

@wmarino13

  1. run npm uninstall react-native-html-to-pdf-fixed
  2. in package.json add "react-native-html-to-pdf": "git+https://github.com/Gazfay/react-native-html-to-pdf-fixed.git"
  3. run npm install
2reactions
mrxrinccommented, Oct 19, 2018

yes, exactly on android. this is my environment: react native 0.55.4, react-native-html-to-pdf: “^0.6.0”, targetSDK: 26, operating system: windows 10

actually my target sdk was 22 but as I submitted the application to play store, they said it must be 26, so I changed it and its more than likely that u guessed right, it could be the potential reason of not recognition “directory: docs”.

how can we fix it without decreasing the target SDK number?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Drive App crashes even though I alerady followed ...
Windows: Open Windows fie explorer then type %USERPROFILE%\AppData\Local\Google\. Delete DriveFS & Drive if it is present as Drive is the redundant folder from ......
Read more >
Windows Explorer crashes when trying to access files in D ...
I'm trying to open my Music folder on my desktop or. ... anything on the drive, it finds it and I can use...
Read more >
Evertime I try to open my google drive folder of 1000 ...
Evertime I try to open my google drive folder of 1000+ pictures, the google drive app crashes. Is it impossible to view the...
Read more >
Google Drive Crashing in Windows Explorer: 3 Steps to Fix it
Many users reported that Google Drive keeps crashing on Windows Explorer. You can fix this by reinstalling the app and clearing your cache....
Read more >
Troubleshooting a Crash (Sun Directory Server Enterprise ...
This section describe how to begin troubleshooting a crashed Directory Server process. It describes possible causes of a crash, what pieces of information ......
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