2019-03-16 09:56:17 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
#
|
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
2019-10-16 06:08:07 +03:00
|
|
|
|
2019-03-16 09:56:17 +03:00
|
|
|
# This script collects the "core" component schemas used by fabric
|
|
|
|
# then uses react-native-codegen to generate the component headers
|
|
|
|
# to a location that the podspecs expect.
|
|
|
|
|
|
|
|
# shellcheck disable=SC2038
|
2019-07-01 13:10:07 +03:00
|
|
|
|
|
|
|
find "$PWD/../Libraries" -name "*NativeComponent.js" -print | xargs yarn flow-node packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js schema-rncore.json
|
2019-09-18 04:42:17 +03:00
|
|
|
yarn flow-node packages/react-native-codegen/buck_tests/generate-tests.js schema-rncore.json rncore ReactCommon/fabric/components/rncore rncore
|