mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52168 # Changelog: [Internal] The main reason for the stub is to make sure this method is always installed. The actual implementation will be part of the `jsinspector-modern` stack, which is fully initialized in production builds. Once there is a gurantee that RuntimeTarget globals are always installed in any environments, we can remove polyfills altogether. Reviewed By: rubennorte, GijsWeterings Differential Revision: D76987507 fbshipit-source-id: 2602af28f9e4359cf58dfafdf84802c0bf92372d
@react-native/js-polyfills
Installation
yarn add @react-native/js-polyfills
Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like
Testing
To run the tests in this package, run the following commands from the React Native root folder:
yarnto install the dependencies. You just need to run this onceyarn jest packages/polyfills.