react-native-url-polyfill
react-native-url-polyfill copied to clipboard
Support for React Native Web
Currently, this library isn't working well with react-native-web because we depend on polyfillGlobals from React Native:
https://github.com/charpeni/react-native-url-polyfill/blob/857044666d563b0558b2fd6e23d5736e620108e3/index.js#L3
We could easily bypass this with a Platform.OS check and fallback on applying polyfills directly on globalThis for the web platform. But should we?
What should be the behavior when you use the auto-import or setupURLPolyfill with react-native-web?
- No op
- Fallback to
globalThisinstead of usingpolyfillGlobals