mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Refer to `In component, props and events pick properties from the component interface by themselves independently, I would like to reverse the direction, to have a function dispatching properties to props and events, to reduce duplicated code. ` in https://github.com/facebook/react-native/issues/34872 ## Changelog [General] [Changed] - Refactor codegen: Dispatch props and events from a central place. Pull Request resolved: https://github.com/facebook/react-native/pull/34975 Test Plan: `yarn jest react-native-codegen` passed Reviewed By: cortinico Differential Revision: D40507917 Pulled By: cipolleschi fbshipit-source-id: 71988877008ae11a01affd31b34bb3a3b88f96be
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.