react-native-macos/packages/react-native-codegen
Pranav Yadav 5a20bd5b10 refactor: mv `translateArrayTypeAnnotation` (Flow,TS) fns > `parsers-primitives.js` (#35479)
Summary:
This PR is a subtask of https://github.com/facebook/react-native/issues/34872
Moved `translateArrayTypeAnnotation` (Flow,TS) fns to `parsers-primitives.js`
- combined `Flow` and `TS` `translateArrayTypeAnnotation` fn 's into common fn
- moved it to `parsers-primitives.js`
- re-organized imports and exports :)

## Changelog

[Internal] [Changed] - Moved `translateArrayTypeAnnotation` (Flow,TS) fns to `parsers-primitives.js`

Pull Request resolved: https://github.com/facebook/react-native/pull/35479

Test Plan:
- ensure 👇 is `#00ff00`
`yarn lint && yarn flow && yarn test-ci`

Reviewed By: cipolleschi

Differential Revision: D41548046

Pulled By: GijsWeterings

fbshipit-source-id: 8fd7214f8b1e669ba42f326f814674eec179fed5
2022-11-30 04:53:34 -08:00
..
buck_tests Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
e2e update graphics imports 2022-11-23 01:41:23 -08:00
scripts Use realpath instead of readlink 2022-02-22 02:23:02 -08:00
src refactor: mv `translateArrayTypeAnnotation` (Flow,TS) fns > `parsers-primitives.js` (#35479) 2022-11-30 04:53:34 -08:00
.babelrc Rewrite ObjC++ module generator 2020-09-29 14:39:40 -07:00
.prettierrc JS: Upgrade to Prettier v2.4.1 [1/n] 2021-11-02 22:14:16 -07:00
BUCK Apply lint updates from buildifier in xplat 2022-07-24 13:46:21 -07:00
DEFS.bzl Make react-native-codegen work on Windows within BUCK 2022-10-12 03:48:36 -07:00
README.md chore: renamed react-native-codegen to @react-native/codegen (#34804) 2022-11-28 08:28:51 -08:00
package.json chore: renamed react-native-codegen to @react-native/codegen (#34804) 2022-11-28 08:28:51 -08:00

README.md

@react-native/codegen

Version

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:

  1. yarn to install the dependencies. You just need to run this once
  2. yarn jest react-native-codegen.