wkh237 / rn-firebase-storage-upload-sample

React Native sample code for upload blob data to Firebase using Firebase SDK with RNFetchBlob.
57 stars 13 forks source link

fetch not working now... #10

Closed alxvallejo closed 7 years ago

alxvallejo commented 7 years ago

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?

alxvallejo commented 7 years ago

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();