wkh237/rn-firebase-storage-upload-sample

fetch not working now...

alxvallejo opened this issue · 1 comments

I see this is mentioned in the caveats section of react-native-fetch-blob..

https://github.com/wkh237/react-native-fetch-blob#user-content-caveats
If you replaced window.XMLHttpRequest for some reason (e.g. make Firebase SDK work), it will also affect how official fetch works (basically it should work just fine).

Ok... so now my fetch isn't working, so... can i revert the polyfill?

I ended up just using the polyfill anyways:

let response = await RNFetchBlob.fetch("GET", "https://randomuser.me/api/?results=25&nat=us&format=json");
let json = await response.json();