Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rn fetch prototype error
if (__DEV__) {
global.XMLHttpRequest = global.originalXMLHttpRequest ?
global.originalXMLHttpRequest :
global.XMLHttpRequest;
global.FormData = global.originalFormData ?
global.originalFormData :
global.FormData;
global.Blob = global.originalBlob ?
global.originalBlob :
global.Blob;
global.FileReader = global.originalFileReader ?
global.originalFileReader :
global.FileReader;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment