Files
react-native/packages/react-native-codegen
gabrieldonadel e962d43233 chore: Extract logic to compute codegen TS extendsProps and props in getProps function (#36889)
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
2023-04-14 04:40:49 -07:00
..
2022-02-22 02:23:02 -08:00
2020-09-29 14:39:40 -07:00
2023-03-30 15:55:58 -07:00

@react-native/codegen

Version

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:

  1. yarn to install the dependencies. You just need to run this once
  2. yarn jest react-native-codegen.