When using RNFetchBlob with React Native I get a yellow warning screen that says:
Module RNFetchBlob requires main queue setup since it overrides
constantsToExport
but doesn't implementrequiresMainQueueSetup
. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.
I am using react-native 0.56.0 and react-native-fetch-blob: 0.10.8. This worked previously with react-native 0.54.2.
What exactly is this error telling me? What exactly is main queue setup? What should I do to fix this problem? Thanks!
It turns out that react-native-fetch-blob
is no longer supported and I needed to use rn-fetch-blob
instead. To fix this I had to do the following:
I then had to change all lines that used:
import RNFetchBlob from 'react-native-fetch-blob';
to:
import RNFetchBlob from 'rn-fetch-blob';
Everything is now working the way that it should.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With