mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3c8d678aad
Summary: This PR is a task from https://github.com/facebook/react-native/issues/34872: > Extract the visit function in a shared function in the parsers/utils.js folder. Use the new function in the Flow and TypeScript parsers. ## 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] - Extract the visit function in a shared function in the parsers/utils.js Pull Request resolved: https://github.com/facebook/react-native/pull/34946 Test Plan: I tested using jest, flow and eslint commands. Reviewed By: NickGerleman Differential Revision: D40276462 Pulled By: cipolleschi fbshipit-source-id: 299cc2a3aa65a9757b217192a13838d037c497a1
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.