mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
6104ccdc6e
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51910 **Changelog:** [Android] [Fixed] - Fix combining schema in Codegen process to exclude platforms correctly Discovered an issue with how we are excluding platforms in processing codegen schema. `excludedPlatforms` is a field on `OptionsShape` part of `ComponentShape` not Module https://www.internalfb.com/code/fbsource/[153d78d4cd5d0fa652e5a0919bcdb26f32d0945e]/xplat/js/react-native-github/packages/react-native-codegen/src/CodegenSchema.js?lines=112 Hence for components modifying the script to iterate over component and for then exclude accordingly based on `platform`. Reviewed By: cipolleschi Differential Revision: D76158851 fbshipit-source-id: 791ec12d068794e36f34da7419082887483ce6c5
@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.