Closed sevazhidkov closed 1 year ago
React Native doesn't support most of the URL methods, including ability to get a hostname: https://github.com/facebook/react-native/blob/7f2dd1d49cc3c0bf5e24fdb37f6457151c1f06c4/Libraries/Blob/URL.js#L177
URL
This PR switches usages to an NPM implementation of URL. I've also considered using a react-native-url-polyfill, but seems less elegant and still uses a new dependency.
React Native doesn't support most of the
URL
methods, including ability to get a hostname: https://github.com/facebook/react-native/blob/7f2dd1d49cc3c0bf5e24fdb37f6457151c1f06c4/Libraries/Blob/URL.js#L177This PR switches usages to an NPM implementation of
URL
. I've also considered using a react-native-url-polyfill, but seems less elegant and still uses a new dependency.