Open
Description
I believe React Native's environment does not provide DOMException
, so we need to use a polyfill or develop our own. Check domexpection. If that's the case, for consistency's sake, the polyfill should be delivered via react-native-polyfill-globals.
Check GitHub's implementation for inspiration.
DOMException
should be thrown when:
- fetch is aborted
See: https://developers.google.com/web/updates/2017/09/abortable-fetch