mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
05454fa866
Summary: Part of Umbrella https://github.com/facebook/react-native/issues/34872 > [**Codegen 84** - assigned to Pranav-yadav] It depends on [Codegen 83] export the parseModuleName anonymous function (Flow, TypeScript) in a common parseModuleName function in the parsers-commons.js file. - merged Parse Module-Name _**anon**_ fn of `Flow` & `TS` parsers; into a common `parseModuleName` fn in the `parsers-commons.js` - added **tests** for `parseModuleName` fn from `parsers-commons.js` - added `callExpressionTypeParameters` method to **_parsers_** - added **tests** for `callExpressionTypeParameters` method of _parsers_ - used `parser.callExpressionTypeParameters` method in `parseModuleName` fn PS: fixed merge conflicts several times :( Overall :) ## Changelog [INTERNAL] [CHANGED] - Merge Parse-Module-Name anon fn of `Flow` & `TS` and add `callExpressionTypeParameters` method to **_parsers_** Pull Request resolved: https://github.com/facebook/react-native/pull/36297 Test Plan: - `yarn lint && yarn run flow && yarn test react-native-codegen` ==> ✅ Reviewed By: rshest Differential Revision: D43694563 Pulled By: cipolleschi fbshipit-source-id: 99cf40ada0a567cd9ff91078f66fd4ac3684f7cc
@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.