mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
95e685a44d
Summary: This PR is a task of https://github.com/facebook/react-native/issues/34872 - Moved the [emitMixedTypeAnnotation](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/parsers-commons.js#L102) function to the [`parser-primitives.js` file](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/parsers-primitives.js). - Moved tests for the same respectively - Fixed/Updated imports and exports for the same respectively ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [INTERNAL] [Changed] - Moved the `emitMixedTypeAnnotation` function to the `parser-primitives.js` file. Pull Request resolved: https://github.com/facebook/react-native/pull/35185 Test Plan: `yarn test-ci`  Reviewed By: cipolleschi Differential Revision: D40993027 Pulled By: rshest fbshipit-source-id: 5e025804f4ef6723396accf2f859483f76cb6cd6
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.