Files
react-native/packages/react-native-codegen
Pranav Yadav efc6e147f9 merge getExtendsProps & getProps fns - Flow (#36891)
Summary:
[Codegen 102] This PR is subtask of umbrella https://github.com/facebook/react-native/issues/34872. It extracts the code to compute the `extendsProps` and the props properties in Flow in a `getProps() -> {extendsProps, props}` function into the same `index.js` file. This will help unifying the `buildComponentSchema` functions between Flow and TS so we can factor it out in a later step.

## Changelog:

[INTERNAL][CHANGED] - merge `getExtendsProps` & `getProps` fns into `getProps` fn - Flow.

Pull Request resolved: https://github.com/facebook/react-native/pull/36891

Test Plan: - `yarn flow && yarn test react-native-codegen`  --> *should be green.*

Reviewed By: rshest

Differential Revision: D45044653

Pulled By: cipolleschi

fbshipit-source-id: 9fcdaef60dfbc3332d880b19c6e575d948d21986
2023-04-24 10:46:21 -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.