mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a15fc102e6
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52052 Changelog: [General][Added] - Add support for Flow opaque types in codegen for native modules This allows us to codegen native modules that expose opaque types, but the implementation sees the type the same way they're visible in the JS spec. Reviewed By: yungsters Differential Revision: D76741112 fbshipit-source-id: 100ca9aa7f93d35120c52153f756436c9c380b07
@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.