mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e240879057
Summary: This PR extracts the `findComponentConfig(...)` Flow and TS from the `index.js`'s files to the `parser-commons.js` file. bypass-github-export-checks ## Changelog: [INTERNAL][CHANGED] - Refactor: Extract `findComponentConfig(...)` from Flow & TS to `parsers-commons.js` Pull Request resolved: https://github.com/facebook/react-native/pull/37547 Test Plan: - `yarn flow && yarn test packages/react-native-codegen` → should be green. Reviewed By: cortinico Differential Revision: D46143481 Pulled By: cipolleschi fbshipit-source-id: f9a456b1d58312422b17463ed2b60ee5fda16462
@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.