react-native-url-polyfill
react-native-url-polyfill copied to clipboard
🔗A lightweight and trustworthy URL polyfill for React Native.
Hi, First, thanks for putting this out there. That said, I've got an issue that I think must be me, because it's such an obvious one: ``` const myURL =...
```ts import { URL } from 'react-native-url-polyfill' const urlObj = new URL(url) // Expected 0 arguments, but got 1.ts(2554) (parameter) url: string ``` Any idea?
I was using `auto` just like the Option 1 in the readme said, and it wasn't working. Then I finally did [what this comment said](https://github.com/charpeni/react-native-url-polyfill/issues/260#issuecomment-785087477), and it worked. So maybe...
Malicious actors could trick victims into click phishing links, because they look exactly like the valid original domain. E.g. the original apple.com url could be converted using the cyrillic alphabet...
Currently, this library isn't working well with [react-native-web](https://github.com/necolas/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...
I really appreciate your work. Today, I published my app as an .aab file to the Play Store. When testing it on real devices, this package caused the app to...
The URL implementation used by this library doesn't appear to normalize URL hostnames in the same way as the implementations of Node 18 and [WHATWG](https://github.com/jsdom/whatwg-url). Here's a repro: https://replit.com/@estrattonbailey/URL-normalization [whatwg-url-without-unicode](https://github.com/zulip/whatwg-url)...
Although ES6 imports work with React Native bundlers, [Jest does not support it natively](https://jestjs.io/docs/ecmascript-modules). Recently I introduced this package to our library. It works perfectly in RN integration test but...