Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save djleonskennedy/051625a1e0f10200d4c7b8442e6f60e9 to your computer and use it in GitHub Desktop.
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