mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a108dcb2ce
Summary: Move the `verifyProprsNotAlreadyDefined` functions [from Flow](https://github.com/facebook/react-native/blob/d8ced6f8953cd896471983714e722caf50783960/packages/react-native-codegen/src/parsers/flow/components/componentsUtils.js#L220-L229) and [from TypeScript](https://github.com/facebook/react-native/blob/d8ced6f8953cd896471983714e722caf50783960/packages/react-native-codegen/src/parsers/typescript/components/componentsUtils.js#LL486-L495) to the parsers-commons.js file. Use the new function in place of the others. ## Changelog: [Internal] [Changed] - Moved `verifyProprsNotAlreadyDefined` to `parsers-commons.js` Pull Request resolved: https://github.com/facebook/react-native/pull/37963 Reviewed By: cipolleschi Differential Revision: D46841711 Pulled By: rshest fbshipit-source-id: 4c7e85d8e184126d16c520b0e56b4c291babff06
@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.