I know 0.10.16 is intended to support 0.60.0 react-native, but that version makes app terminating when running app from react-native run-android in 0.59.10 react-native
@renalpraba Can you post any exception details? π€
I guess 0.10.16 is not intended to be used with react-native below 0.60.0. RN0.60 changed from the android support libraries to using androidx; you can see some of the changes in this commit. Considering that you are running 0.59.10, you very likely didn't change the gradle files to get that working and you shouldn't if you plan on staying on 0.59.10.
You can go through the list of commits since 0.10.15 here and see if there is anything that changes any functionality and use patch-package to safe the changes in your project. Given that the release is for supporting 0.60.0 though, I assume that there is no new stuff introduced.
I just ran into this as well.
This should probably at least be a minor version bump since it is breaking for any React Native version below 0.60.
if you are not yet upgraded to react native 0.60 or higher, rn-fetch-blob 0.10.16 will not work for you, you'll have to stay on 0.10.15. Unfortunately with this library being a pre-1.0 release you should assume just about every new version is breaking. I'll look into revising how we handle version numbers going forward though to reduce this problem
yes @Traviskn better version numbers and more clear information about compatible version on the readme π
I have the same error, does anyone have a solution ?. I run on android and crash when use rn-fetch-blob 0.10.15 :((
the readme has been updated:
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
rn-fetch-blob v.0.10.16 not compatible to RN <0.60, I was updated my RN to 0.60 and just to normally run. first time I shock when I'm updating the package and making break of my code. Lol π
try this :
react-native upgrade or react-native init [New Build & New Version 0.60.3]
I have this same issue
My solution is just install version we need.
react-native --save [email protected]{version we need}
If wanna use latest version we need upgrade latest version react-native
First, you must be delete the node_modules & package-lock.json and you can see your dependency rn-fetch-blob "^0.10.16" and then you can change to "0.10.15", and you npm install or sudo install (Mac), it's work in react-native <0.60
I have this same problem. I just install 0.10.15 and that's ok.
react-native 0.59.9,
rn-fetch-blob 0.10.15
1γ$ yarn remove rn-fetch-blob
2γin package.json, change "rn-fetch-blob": "^0.10.16"to "rn-fetch-blob": "0.10.15"
3γ$ yarn
Most helpful comment
if you are not yet upgraded to react native 0.60 or higher, rn-fetch-blob 0.10.16 will not work for you, you'll have to stay on 0.10.15. Unfortunately with this library being a pre-1.0 release you should assume just about every new version is breaking. I'll look into revising how we handle version numbers going forward though to reduce this problem