mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
bbed15d4ae
Summary: As [requested from community](https://github.com/reactwg/react-native-new-architecture/discussions/91#discussioncomment-4282384), intersection type is supported for component but no in turbo module. This PR fixed it. ## Changelog [GENERAL] [CHANGED] - Turbo Module supports intersection type for TypeScript Pull Request resolved: https://github.com/facebook/react-native/pull/36037 Test Plan: `yarn jest react-native-codegen` passed Reviewed By: christophpurrer Differential Revision: D42960338 Pulled By: cipolleschi fbshipit-source-id: d317d3155cb96643bf549d0ac3d77f503685edbc
@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.