{"repo":"charpeni/react-native-url-polyfill","free":true,"listed":false,"github":"https://github.com/charpeni/react-native-url-polyfill","clone":"git clone https://github.com/charpeni/react-native-url-polyfill.git","description":"🔗A lightweight and trustworthy URL polyfill for React Native.","language":"JavaScript","stars":409,"topics":["react-native","whatwg-url","polyfill","url","urlsearchparams","javascript"],"license":"MIT","category":"mobile-apps","readme_excerpt":"React Native URL Polyfill A lightweight and trustworthy URL polyfill for React Native, based on the WHATWG URL Standard optimized for React Native. - Lightweight . Ships its own dependency-free implementation of the URL Standard where Unicode hostname support has been left out to keep the bundle small. Written in TypeScript, published as minified plain JavaScript. - Trustworthy . Follows the URL Standard spec, and relies on unit tests generated from Web Platform Tests and Detox e2e tests within React Native. Types are verified to stay interchangeable with Node.js's built-in URL and whatwg-url . - Blob support . Supports React Native's Blob without additional steps. - Hermes support . Supports Hermes, a JavaScript engine optimized for running React Native. - Expo support . Supports Expo. - Web support . Most of the time, this polyfill isn't useful on web and therefore using react-native-url-polyfill/auto will be no-op on web. [!IMPORTANT] As mentioned above, Unicode support has been stripped out to keep this polyfill lightweight on mobile. Therefore, non-ASCII characters aren't supported in the hostname. Why do we need this? React Native does include a polyfill for URL , but this polyfill is homemade—in order to keep it light-weight—and was initially created to handle specific use cases. Meanwhile, React Native has grown around that polyfill, then some unexpected errors have arisen. [!NOTE] Known issues (non-exhaustive) with React Native's URL are: - URL cannot handle \"localho","default_branch":null,"files":null,"tree":[],"storefront":"/r/charpeni","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/charpeni/react-native-url-polyfill/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}