react-native-url-polyfill
react-native-url-polyfill copied to clipboard
🔗A lightweight and trustworthy URL polyfill for React Native.
Resovles: #446 this change fixes the issue when using Jest react-native preset against TypeScript, the transpiled code contains unrecognized 'import' statement. Moreover the code pointed by the 'main' entry point...
const searchParams = new URLSearchParams('abc=456&rn=ReactNative&abc=javascript'); console.log('size: ' + searchParams .size); The log result should be as follows:size: 3; The actual log result is as follows:size: undefined;
const params = new URLSearchParams('query=abc&type=search&query=123'); params.sort(); let result = params.toString(); console.log('result: ' + params.toString()); The log result should be:query=abc&query=123&type=search; The actual log result is as follows:result: query=abc&type=search&query=123;
I am trying to use this package, but I am getting an error when bundling with Expo! Here are 2 different ways the error shows up: ``` [Error: TransformError node_modules/react-native-url-polyfill/index.js:...
**2.65KB** of useless code in my JS bundle, could please avoid importing `package.json`
Thanks for the great work on this project! I noticed that a fix targeting react-native 0.78 I’m interested in has already been merged into master https://github.com/charpeni/react-native-url-polyfill/commit/6160f008556ce0497705761423a730cc5aa16a17. I was wondering if...