mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a497882384
Summary: [Codegen 132] This PR introduces `emitMixedProp` to parser-primitives and abstracts the logic out of typescript and parser events as requested on https://github.com/facebook/react-native/issues/34872 ## Changelog: [Internal] [Changed] - Add emitMixedProp to parser-primitives and update usages. Pull Request resolved: https://github.com/facebook/react-native/pull/37608 Test Plan: Run yarn jest react-native-codegen and ensure CI is green ## Screenshot of tests passing locally: <img width="1182" alt="Screenshot 2023-05-28 at 12 46 49 PM" src="https://github.com/facebook/react-native/assets/64726664/dbea4daf-d954-4c7f-b121-c6aad1fb318e"> Reviewed By: dmytrorykun Differential Revision: D46275638 Pulled By: cipolleschi fbshipit-source-id: 803d82055c7925e49aca1f408b5c7a50c687349a
@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 packages/react-native-codegen.