Currently I am using rn-fetch-blob to store images I've downloaded. However, the library is no longer maintained. If anyone is still using this library have you run into any issues? For those who have stopped using it, are there any other alternate libraries I should be considering?
I have run rm -rf node_modules, yarn and react-native link, and then removed compile project(':rn-fetch-blob') from build.gradle, as other question suggested, but now I am getting more errors in the source code for Android when I try to run react-native run-android (probably will happen for iOS too).
This package is a fork of the now-deprecated react-native-fetch-blob package and its first fork, rn-fetch-blob. Since those packages are no longer maintained, the creator continued the project in this fork to go on supporting React Native developers in accessing and transferring data and files easily and efficiently.
I am using rn-fetch-blob to download photos and want them to be stored in external sd card.While I always get 'permission denied' even I have set android.permission.WRITE_EXTERNAL_STORAGE in AndroidManifest.xml and have ask permission request by PermissionsAndroid.request I still get the permission error.
As you did not provide any code for reference it is hard to see what is happening. Perhaps the problem is misspelling a character in the file path. To avoid this kind of thing you can use rn-fetch-blob constants. Another option is to use react-native-fs module, it offers a constant that maps to external storage.
I want to display a pdf in my react-native app. I used documentation from -native-pdf. I installed rn-fetch-blob and react-native-pdf. i have linked react-native-pdf .but when i ran command "react-native link rn-fetch-blob" it didn't get linked.and i got the following message in command prompt:
It has been years later since the bug was discovered.
The rn-fetch-blob has released the version 0.12.0 already, and the beta version 0.13.0-beta.2 is released recently. I don't know if the size limit can be resolved by using the new version of rn-fetch-blob.
Plus, when reading the code, I found that you were thinking about using react-native-fs before, but declined due to this bug. This bug was fixed in 2020(mentioned there) so I think it's possible to use the react-native-fs as the alternative to rn-fetch-blob? The usages of rn-fetch-blob is few(around 10 lines).
rn-fetch-blob version 0.10.16 is only compatible with react native 0.60 and up. It should have been a major version bump, we apologize for the mistake. If you are not yet upgraded to react native 0.60 or above, you should remain on rn-fetch-blob version 0.10.15
By default, rn-fetch-blob does NOT allow connection to unknown certification provider since it's dangerous. To connect a server with self-signed certification, you need to add trusty to config explicitly. This function is available for version >= 0.5.3
I'm trying to download and save a file with rn-fetch-blob. (I haven't been able to do it without a library since apparently react-native only implements a subset of the browser's fetch interface). My code is something like:
760c119bf3