mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
cc311ff01a
Summary: This PR is part of https://github.com/facebook/react-native/issues/34872 This PR extracts the [UnsupportedArrayElementTypeAnnotationParserError](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/flow/modules/index.js#L132) in its own throwing function. ## Changelog [Internal] [Changed] - Extract the UnsupportedArrayElementTypeAnnotationParserError in its own throwing function Pull Request resolved: https://github.com/facebook/react-native/pull/35167 Test Plan: <img width="454" alt="Screen Shot 2022-11-02 at 15 21 15" src="https://user-images.githubusercontent.com/57004457/199582495-23e4e3be-cb7e-41e8-a1fa-0250e127993c.png"> Reviewed By: cipolleschi Differential Revision: D41437971 Pulled By: rshest fbshipit-source-id: 14a6e09297d96f3b57568e0303e5cafff76e6f32
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.