mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
34c19232d3
Summary: part of codegen issue https://github.com/facebook/react-native/issues/34872 > Extract the buildCommandProperties function ([Flow](https://github.com/facebook/react-native/blob/d8ced6f8953cd896471983714e722caf50783960/packages/react-native-codegen/src/parsers/flow/components/index.js#L76-L80), [TypeScript](https://github.com/facebook/react-native/blob/d8ced6f8953cd896471983714e722caf50783960/packages/react-native-codegen/src/parsers/typescript/components/index.js#L64-L113)) from the index.js's files to the parsers-commons.js file. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [Internal][Added]: Extract getCommandProperties to parsers-common Pull Request resolved: https://github.com/facebook/react-native/pull/37666 Test Plan: yarn test react-native-codegen Reviewed By: cipolleschi Differential Revision: D46437431 Pulled By: rshest fbshipit-source-id: 578b94b9d9fec90ac91fa2a56c707abc46b05b99
@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.