mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
7680bdeb4f
Summary: This diff helps the library maintainer to keep their spec file platform specific if some specs make no sense in one platform or in the other. We are filtering the spec files when we need to create the Schema. The diff modifies also the call sites in the `scripts` (for iOS) and in the `gradle-plugin` (for Android). It also adds tests for the new functions in the CLI. The change is completely additive and it should not change any pre-existing behaviour. ## Changelog [General][Added] - Add support for platform-specific specs Reviewed By: cortinico Differential Revision: D40008581 fbshipit-source-id: b7fcf6d38f85fe10e4e00002d3c6f2910abdbe35
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.