-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: RNFetchBlob.fs.stat is not a function #537
Comments
CC: @jaimecbernardo - does the other PR solve this issue? #535 |
Hi @syedibrahimt . Lines 24 to 33 in a75a6ee
with
Once there's a Please let me know if this change fixes the issue for you. @stmoy , it doesn't. That PR fixes the require on iOS and Android. |
rn-fetch-blob has a Windows implementation that is currently living in PR limbo (since the module is unmaintained): joltup/rn-fetch-blob#701 If @syedibrahimt has the rn-fetch-blob dependency included in the app (directly from PR), could the PDF module use it? |
Yes, as long as the previous lines lines were changed. I'll open a Draft PR so that this is easier to consume. |
I've opened a Draft PR in order to use In order to use the Draft PR, run the following inside the react-native project:
|
I forked it and will try to keep it up to date. But will take a bit to fix everything and integrate some old PRs. If anyone wants to help, feel free to contact me :) I will also integrate the windows implementation |
Thanks @jaimecbernardo . I will take this draft PR and try. |
@jaimecbernardo . I tried this one. But still not working. The app crashes without any logs. |
Hi @syedibrahimt , Since you've, tried there's a new commit in that PR that saves the file to disk as expected by react-native-pdf, but still fails some time: joltup/rn-fetch-blob@518d48b I've been able to load pdfs after those changes, so you might want to give it another try, but I still spot some flakiness in the behavior which is still leading to some crashes: joltup/rn-fetch-blob#701 (comment) I'll keep looking for other sources for the flakiness as well. |
Any solutions? I tried everything :( |
@bicanezin , |
I finally solved my problem!!!! |
What
react-native
version are you using?0.63.4
What
react-native-pdf
version are you using?https://github.com/wonday/react-native-pdf
Platform
windows
Steps to reproduce:
Install the windows version using the following steps(https://github.com/wonday/react-native-pdf#windows-installation)
Show us the code you are using?
<Pdf style={{flex: 1, width: 200, height: 500}} source={source} />
The text was updated successfully, but these errors were encountered: