mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This PR should solve the `"Circular Dependencies"` problem/issue because of which some PRs are getting blocked as discussed here https://github.com/facebook/react-native/pull/35288#issuecomment-1314081952 - also moved below helpers to `parsers-commons.js`; - `getTypeAnnotationParameters` - `getFunctionNameFromParameter` - `getParameterName` - `getParameterTypeAnnotation` - `getTypeAnnotationReturnType` <3 ## Changelog [INTERNAL] [CHANGED] - Moved `translateFunctionTypeAnnotation` fn from `parsers-primitives.js` to `parsers-commons.js` also, moved it's helpers Pull Request resolved: https://github.com/facebook/react-native/pull/35343 Test Plan: - ensure 👇 is `#00ff00` `yarn lint && yarn flow && yarn test-ci` Reviewed By: christophpurrer Differential Revision: D41273191 Pulled By: rshest fbshipit-source-id: cc1839a91579e7914f05516a90b280a776510c9d
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.