资源算法react-native-url-polyfill

react-native-url-polyfill

2019-12-26 | |  70 |   0 |   0

React Native URL Polyfill

A light and trustworthy URL polyfill for React Native

   Current npm package version.        Current CircleCI build status.        PRs welcome!        React Native URL Polyfill is released under the MIT license.  


react-native-url-polyfill is a full implementation of the WHATWG URL Standard that has been optimized for React Native.

  • Trustworthy. Follows closely the URL Standard spec, and relys on unit tests and Detox e2e tests within React Native.

  • Light. Instead of using directly whatwg-url, this polyfill uses a forked version (whatwg-url-without-unicode) where unicode support has been stripped out — Going down from 361 KB to 54 KB.

  • Blob support. Supports React Native's Blob without additional steps.

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.

Known issues (non-exhaustive) with React Native's URL are:

Unfortunately, adding react-native-url-polyfill to React Native source code will means adding

上一篇:url-search-params-polyfill

下一篇:korgi

用户评价
全部评价

热门资源

  • DuReader_QANet_BiDAF

    Machine Reading Comprehension on DuReader Usin...

  • ETD_cataloguing_a...

    ETD catalouging project using allennlp

  • allennlp_extras

    allennlp_extras Some utilities build on top of...

  • allennlp-dureader

    An Apache 2.0 NLP research library, built on Py...

  • allennlp-server

    allennlp-server Serve allennlp services as sep...