mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3759a26214
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36591 If any of the properties used in event-emitter codegen conflict with `event` or `payload`, the generated code will fail to build, even if this generated code isn't used. Since these are quite common keys, prefix them with `$` (still valid C++) to avoid conflicts. Changelog: [General][Fixed] Resolved property name conflicts in event-emitter codegen Reviewed By: cipolleschi Differential Revision: D44274619 fbshipit-source-id: 45e67850c49e082d8f9b1f85bb632d45a9fd4f1d
@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.