Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johanneslumpe/react-native-browser-polyfill
A collection of polyfills for the react-native JavaScript environment.
https://github.com/johanneslumpe/react-native-browser-polyfill
Last synced: about 1 month ago
JSON representation
A collection of polyfills for the react-native JavaScript environment.
- Host: GitHub
- URL: https://github.com/johanneslumpe/react-native-browser-polyfill
- Owner: johanneslumpe
- License: mit
- Created: 2015-05-30T07:03:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-18T13:26:40.000Z (over 7 years ago)
- Last Synced: 2024-11-02T00:50:14.996Z (about 1 month ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 32
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-browser-polyfill ★29 - A collection of polyfills for the react-native Javascript environment. (Components / Web)
- awesome-react-native - react-native-browser-polyfill ★29 - A collection of polyfills for the react-native Javascript environment. (Components / Web)
- awesome-react-native - react-native-browser-polyfill ★29 - A collection of polyfills for the react-native Javascript environment. (Components / Web)
- awesome-react-native-ui - react-native-browser-polyfill ★21 - A collection of polyfills for the react-native Javascript environment. (Components / Web)
- awesome-react-native - react-native-browser-polyfill ★29 - A collection of polyfills for the react-native Javascript environment. (Components / Web)
README
# 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.