mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e73c00f576
Summary: [Codegen 138] This PR introduces `getProperties` to Parser base class and implements the function in Typescript and Flow Parsers. This PR also gets rid of `getProperties` from : - `packages/react-native-codegen/src/parsers/typescript/components/componentsUtils.js` - `packages/react-native-codegen/src/parsers/flow/components/componentsUtils.js` and updates the usages with `getProperties` from the respective parser objects as requested on https://github.com/facebook/react-native/issues/34872 ## Changelog: [Internal] [Changed] - Add getProperties to Parsers base class and update usages. Pull Request resolved: https://github.com/facebook/react-native/pull/37633 Test Plan: Run yarn jest react-native-codegen and ensure CI is green ## Screenshot of tests passing locally:  Reviewed By: cipolleschi Differential Revision: D46322882 Pulled By: rshest fbshipit-source-id: 5506ce5ff395946ea8c1258b152716fea0142b95
@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.