mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9693a2b855
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54262 Similar to `performance.measure()`, Chrome is adding an optional `detail` arg to `console.timeStamp`. Here we implement this for React Native, by direct passing to the `"TimeStamp"` trace event args. [`console.timeStamp()`](https://developer.mozilla.org/en-US/docs/Web/API/console/timeStamp_static) remains an experimental, non-standard API. Changelog: [Internal] Reviewed By: hoxyq Differential Revision: D85437162 fbshipit-source-id: 36f5f6207cf205df5a216bde95013ea9540fc082
@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.