mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e962d43233
Summary: [Codegen 103] This PR extracts the logic to compute the `extendsProps` and `props` properties in TypeScript Codegen in a `getProps()` function as requested on https://github.com/facebook/react-native/issues/34872 ## Changelog: [Internal] [Added] - Extract logic to compute codegen TS `extendsProps` and `props` properties in a single `getProps` function Pull Request resolved: https://github.com/facebook/react-native/pull/36889 Test Plan: Run `yarn jest react-native-codegen` and ensure CI is green Reviewed By: rshest Differential Revision: D44952664 Pulled By: cipolleschi fbshipit-source-id: fd51f0b8767efbb0071b6391e0852c19b5a984c6
@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 react-native-codegen.