From 23ce90bd3bdfb3b8268466c40bab31bf7a54a8d7 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Mon, 1 Jun 2026 20:00:27 -0700 Subject: [PATCH] Remove 6 empty Objective-C stub headers (#56949) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56949 Changelog: [iOS][Breaking] Remove 6 empty Objective-C stub headers Reviewed By: cipolleschi Differential Revision: D106162524 fbshipit-source-id: 51e8abf4609f1db643dae4af8ec7e79038c02522 --- .../Libraries/AppDelegate/RCTAppSetupUtils.mm | 1 - .../react-native/Libraries/Text/RCTTextAttributes.h | 12 ------------ .../Text/TextInput/Multiline/RCTUITextView.mm | 1 - .../Text/TextInput/RCTBackedTextInputViewProtocol.h | 1 - .../Text/TextInput/Singleline/RCTUITextField.mm | 1 - .../react-native/React/Base/RCTRootContentView.h | 8 -------- packages/react-native/React/Base/RCTRootView.m | 2 -- .../react-native/React/Base/RCTRootViewInternal.h | 8 -------- .../RCTSurfaceHostingProxyRootView.mm | 1 - .../React/CxxBridge/RCTJSIExecutorRuntimeInstaller.h | 8 -------- packages/react-native/React/CxxModule/RCTCxxUtils.mm | 2 -- .../react-native/React/CxxModule/RCTNativeModule.h | 9 --------- .../Modal/RCTModalHostViewComponentView.mm | 1 - packages/react-native/React/Modules/RCTUIManager.mm | 2 -- packages/react-native/React/Views/RCTModalManager.h | 8 -------- .../scripts/ios-prebuild/templates/React-umbrella.h | 4 ---- 16 files changed, 69 deletions(-) delete mode 100644 packages/react-native/Libraries/Text/RCTTextAttributes.h delete mode 100644 packages/react-native/React/Base/RCTRootContentView.h delete mode 100644 packages/react-native/React/Base/RCTRootViewInternal.h delete mode 100644 packages/react-native/React/CxxBridge/RCTJSIExecutorRuntimeInstaller.h delete mode 100644 packages/react-native/React/CxxModule/RCTNativeModule.h delete mode 100644 packages/react-native/React/Views/RCTModalManager.h diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.mm b/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.mm index cb34841283b..afa9d5dcd1e 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.mm @@ -7,7 +7,6 @@ #import "RCTAppSetupUtils.h" -#import #import #import diff --git a/packages/react-native/Libraries/Text/RCTTextAttributes.h b/packages/react-native/Libraries/Text/RCTTextAttributes.h deleted file mode 100644 index f8f6ca1dde0..00000000000 --- a/packages/react-native/Libraries/Text/RCTTextAttributes.h +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#import - -#import -#import -#import diff --git a/packages/react-native/Libraries/Text/TextInput/Multiline/RCTUITextView.mm b/packages/react-native/Libraries/Text/TextInput/Multiline/RCTUITextView.mm index cbda3771e97..a803387b98b 100644 --- a/packages/react-native/Libraries/Text/TextInput/Multiline/RCTUITextView.mm +++ b/packages/react-native/Libraries/Text/TextInput/Multiline/RCTUITextView.mm @@ -11,7 +11,6 @@ #import #import -#import @implementation RCTUITextView { UILabel *_placeholderView; diff --git a/packages/react-native/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h b/packages/react-native/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h index b67beb95648..2f32b96d2a1 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +++ b/packages/react-native/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h @@ -8,7 +8,6 @@ #import @protocol RCTBackedTextInputDelegate; -@class RCTTextAttributes; NS_ASSUME_NONNULL_BEGIN diff --git a/packages/react-native/Libraries/Text/TextInput/Singleline/RCTUITextField.mm b/packages/react-native/Libraries/Text/TextInput/Singleline/RCTUITextField.mm index 052c003476d..064b48bb372 100644 --- a/packages/react-native/Libraries/Text/TextInput/Singleline/RCTUITextField.mm +++ b/packages/react-native/Libraries/Text/TextInput/Singleline/RCTUITextField.mm @@ -8,7 +8,6 @@ #import #import -#import #import #import diff --git a/packages/react-native/React/Base/RCTRootContentView.h b/packages/react-native/React/Base/RCTRootContentView.h deleted file mode 100644 index 3f93aa3f360..00000000000 --- a/packages/react-native/React/Base/RCTRootContentView.h +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#import diff --git a/packages/react-native/React/Base/RCTRootView.m b/packages/react-native/React/Base/RCTRootView.m index 02a3a14c7bb..8d6b8970143 100644 --- a/packages/react-native/React/Base/RCTRootView.m +++ b/packages/react-native/React/Base/RCTRootView.m @@ -7,7 +7,6 @@ #import "RCTRootView.h" #import "RCTRootViewDelegate.h" -#import "RCTRootViewInternal.h" #import @@ -19,7 +18,6 @@ #import "RCTLog.h" #import "RCTPerformanceLogger.h" #import "RCTProfile.h" -#import "RCTRootContentView.h" #import "RCTRootShadowView.h" #import "RCTTouchHandler.h" #import "RCTUIManager.h" diff --git a/packages/react-native/React/Base/RCTRootViewInternal.h b/packages/react-native/React/Base/RCTRootViewInternal.h deleted file mode 100644 index 76b43eed58a..00000000000 --- a/packages/react-native/React/Base/RCTRootViewInternal.h +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#import diff --git a/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm b/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm index 1082e224358..08a2f736b4b 100644 --- a/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +++ b/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm @@ -15,7 +15,6 @@ #import "RCTLog.h" #import "RCTPerformanceLogger.h" #import "RCTProfile.h" -#import "RCTRootContentView.h" #import "RCTRootViewDelegate.h" #import "RCTSurface.h" #import "UIView+React.h" diff --git a/packages/react-native/React/CxxBridge/RCTJSIExecutorRuntimeInstaller.h b/packages/react-native/React/CxxBridge/RCTJSIExecutorRuntimeInstaller.h deleted file mode 100644 index f852921e0ab..00000000000 --- a/packages/react-native/React/CxxBridge/RCTJSIExecutorRuntimeInstaller.h +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#pragma once diff --git a/packages/react-native/React/CxxModule/RCTCxxUtils.mm b/packages/react-native/React/CxxModule/RCTCxxUtils.mm index c404da4ca1c..e3009bd5f85 100644 --- a/packages/react-native/React/CxxModule/RCTCxxUtils.mm +++ b/packages/react-native/React/CxxModule/RCTCxxUtils.mm @@ -12,8 +12,6 @@ #import #import -#import "RCTNativeModule.h" - namespace facebook::react { using facebook::jsi::JSError; diff --git a/packages/react-native/React/CxxModule/RCTNativeModule.h b/packages/react-native/React/CxxModule/RCTNativeModule.h deleted file mode 100644 index cf073ad79fa..00000000000 --- a/packages/react-native/React/CxxModule/RCTNativeModule.h +++ /dev/null @@ -1,9 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#import -#import diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm index c27f816e14e..2cd279590a3 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm @@ -8,7 +8,6 @@ #import "RCTModalHostViewComponentView.h" #import -#import #import #import #import diff --git a/packages/react-native/React/Modules/RCTUIManager.mm b/packages/react-native/React/Modules/RCTUIManager.mm index 69eb981948c..983a881afb8 100644 --- a/packages/react-native/React/Modules/RCTUIManager.mm +++ b/packages/react-native/React/Modules/RCTUIManager.mm @@ -25,9 +25,7 @@ #import "RCTModuleData.h" #import "RCTModuleMethod.h" #import "RCTProfile.h" -#import "RCTRootContentView.h" #import "RCTRootShadowView.h" -#import "RCTRootViewInternal.h" #import "RCTScrollableProtocol.h" #import "RCTShadowView+Internal.h" #import "RCTShadowView.h" diff --git a/packages/react-native/React/Views/RCTModalManager.h b/packages/react-native/React/Views/RCTModalManager.h deleted file mode 100644 index 3f93aa3f360..00000000000 --- a/packages/react-native/React/Views/RCTModalManager.h +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#import diff --git a/packages/react-native/scripts/ios-prebuild/templates/React-umbrella.h b/packages/react-native/scripts/ios-prebuild/templates/React-umbrella.h index e6fd9eb5e8e..1918f29c436 100644 --- a/packages/react-native/scripts/ios-prebuild/templates/React-umbrella.h +++ b/packages/react-native/scripts/ios-prebuild/templates/React-umbrella.h @@ -152,7 +152,6 @@ #import #import #import -#import #import #import #import @@ -185,11 +184,9 @@ #import #import #import -#import #import #import #import -#import #import #import #import @@ -216,7 +213,6 @@ #import #import #import -#import #import #import #import