From 8e49658096f91d09091f10e4b7e5aa3fc12984d9 Mon Sep 17 00:00:00 2001 From: Yuan Dai Date: Thu, 2 Dec 2021 20:24:33 -0800 Subject: [PATCH] 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 --- packages/rn-tester/BUCK | 60 +---------------------------------------- 1 file changed, 1 insertion(+), 59 deletions(-) diff --git a/packages/rn-tester/BUCK b/packages/rn-tester/BUCK index 234afeafacd..3e577b4b788 100644 --- a/packages/rn-tester/BUCK +++ b/packages/rn-tester/BUCK @@ -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", - ], -)