directory: 'docs' Crashes the application!
See original GitHub issueI 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:
- Created 5 years ago
- Comments:14 (4 by maintainers)
Top 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 >
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
@wmarino13
npm uninstall react-native-html-to-pdf-fixed
"react-native-html-to-pdf": "git+https://github.com/Gazfay/react-native-html-to-pdf-fixed.git"
npm install
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?