mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
247a913af0
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36805 **Changelog:** Export macOS specific dependencies for react-native-codgen [Internal][Changed] - RN macOS uses an older version of React Native (0.68) so we need to specify macOS specific dependencies when running codegen for RN Desktop Reviewed By: christophpurrer Differential Revision: D44687704 fbshipit-source-id: 9dcabc88d4abf17845db0844c952f1cb4a13e3ad
@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.