Revert D32778338: Add a dependency to the native component example added to RNTester

Differential Revision:
D32778338 (https://github.com/facebook/react-native/commit/173d3a4abcfe6e46e5f375d21fd7823795c16973)

Original commit changeset: d4703903c222

fbshipit-source-id: 7319c272b93584709a69a2b72173aac916c2f093
This commit is contained in:
Yuan Dai
2021-12-02 20:27:05 -08:00
committed by Facebook GitHub Bot
parent 173d3a4abc
commit 8e49658096
+1 -59
View File
@@ -14,7 +14,6 @@ load(
"YOGA_APPLE_TARGET",
"js_glob",
"make_resource_glob",
"react_fabric_component_plugin_provider",
"react_module_plugin_providers",
"rn_apple_library",
"rn_extra_build_flags",
@@ -50,6 +49,7 @@ rn_library(
[
"js",
"NativeModuleExample",
"NativeComponentExample",
"RCTTest",
],
excludes = [
@@ -63,7 +63,6 @@ rn_library(
skip_processors = True,
visibility = ["PUBLIC"],
deps = [
":MyNativeViewSpec",
"//xplat/js:node_modules__nullthrows",
"//xplat/js/RKJSModules/Libraries/Core:Core",
"//xplat/js/RKJSModules/vendor/react:react",
@@ -78,9 +77,6 @@ fb_native.filegroup(
[
"**/*NativeComponent.js",
],
exclude = [
"NativeComponentExample/**/*",
],
),
visibility = ["PUBLIC"],
)
@@ -278,57 +274,3 @@ rn_apple_library(
YOGA_APPLE_TARGET,
],
)
rn_xplat_cxx_library2(
name = "NativeComponentExample",
plugins_only = True,
srcs = glob(
[
"NativeComponentExample/**/*.m",
"NativeComponentExample/**/*.mm",
],
),
headers = glob(
[
"NativeComponentExample/**/*.h",
],
),
header_namespace = "",
compiler_flags = [
"-fexceptions",
"-frtti",
"-std=c++17",
"-Wall",
],
contacts = ["oncall+react_native@xmail.facebook.com"],
labels = [
"supermodule:xplat/default/public.react_native.infra",
],
plugins = [
react_fabric_component_plugin_provider("RNTMyNativeView", "RNTMyNativeViewCls"),
],
plugins_header = "RCTFabricComponentsPlugins.h",
reexport_all_header_dependencies = False,
visibility = ["PUBLIC"],
deps = [
":generated_components-MyNativeViewSpec",
"//xplat/js/react-native-github:RCTFabricComponentViewsBase",
"//xplat/js/react-native-github:ReactInternal",
],
)
rn_library(
name = "MyNativeViewSpec",
srcs = js_glob(
[
"NativeComponentExample",
],
),
codegen_components = True,
labels = ["supermodule:xplat/default/public.react_native.ui.misc"],
visibility = ["PUBLIC"],
deps = [
"//xplat/js/RKJSModules/vendor/react:react",
"//xplat/js/react-native-github:react-native",
],
)