mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
156ee5bee7
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48905 ## Motivation Modernising the react-native codebase to allow for ingestion by modern Flow tooling. ## This diff - Updates `Libraries/StyleSheet/processColorArray.js` to use `export` syntax. - Appends `.default` to requires of the changed files. - Updates test files. - Updated View Config codegen (requires an MSDK bump). - Updates the public API snapshot *(intented breaking change)* Changelog: [General][Breaking] - Files inside `Libraries/Text`, `Libraries/Share` and `Libraries/Settings` use `export` syntax, which requires the addition of `.default` when imported with the CJS `require` syntax. Reviewed By: robhogan Differential Revision: D68564304 fbshipit-source-id: 2fbd058be1a715cccfce4f2a68146118d8ac66ad
@react-native/codegen
Installation
yarn add --dev @react-native/codegen
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/react-native-codegen.