mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9e0a7e3263
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48343 components store unions as 'StringEnumTypeAnnotation' even though it isn't actually a union, it's a literal. Native Modules store these as 'StringLiteralTypeAnnotation' so this converges those and reuses the same types. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D67427656 fbshipit-source-id: e39028114285588584596012d07db40c117b4b94
@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.