react-native-browser-polyfill

0.1.2 • Public • Published

react-native-browser-polyfill

A collection of polyfills for the react-native JavaScript environment.

If polyfills are needed to make browser-targeted libraries, which use commonly available functions/variables, work in react-native, this is the place to put them. Issues/PRs welcome.

Usage

npm install react-native-browser-polyfill the package and then require('react-native-browser-polyfill') it in your main entry file, before any libraries which require the polyfills.

Polyfills available in this package

global.self

Currently JavaScriptCore does not provide a self reference to the global object, which is utilized by browser libraries (i.e bluebird) to have a reliably reference to the global object which works in browsers and web-workers alike.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    5,019
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    5,019
  • 0.1.1
    2
  • 0.1.0
    3

Package Sidebar

Install

npm i react-native-browser-polyfill

Weekly Downloads

3,083

Version

0.1.2

License

MIT

Last publish

Collaborators

  • johanneslumpe