mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fc927d1fb7
Summary: [Codegen 87] This PR introduces `getProps` to the Parser class and implements this function in Typescript and Flow Parsers. We also get rid of the following files from : - `packages/react-native-codegen/src/parsers/typescript/components/props.js` - `packages/react-native-codegen/src/parsers/flow/components/props.js` as requested on https://github.com/facebook/react-native/issues/34872 bypass-github-export-checks ## Changelog: [Internal] [Changed] - Add `getProps ` to Parsers and update usages. Pull Request resolved: https://github.com/facebook/react-native/pull/37504 Test Plan: Run yarn jest react-native-codegen and ensure CI is green Reviewed By: cortinico Differential Revision: D46074152 Pulled By: cipolleschi fbshipit-source-id: aa6a1a556c9b4a4a6209221f70c8add46ed2d08b
@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.