资源算法react-native-url-polyfill

react-native-url-polyfill

2019-12-26 | |  48 |   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

用户评价
全部评价

热门资源

  • TensorFlow-Course

    This repository aims to provide simple and read...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • mxnet_VanillaCNN

    This is a mxnet implementation of the Vanilla C...

  • DuReader_QANet_BiDAF

    Machine Reading Comprehension on DuReader Usin...

  • Klukshu-Sockeye-...

    KLUKSHU SOCKEYE PROJECTS 2016 This repositor...