From bbee89c517007ffc7d6b30ad0b9ae0f1b5c1d08d Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Thu, 22 Oct 2026 22:47:04 -0700 Subject: [PATCH] Remove dead RCTBridge imports from six more files (#59324) Summary: Pull Request resolved: https://github.com/react/react-native/pull/59324 The view manager, accessibility manager, event dispatcher, packager connection, and two Fabric component views imported the bridge headers without using them. Each keeps the narrower header that provides what it actually needs. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D126580840 fbshipit-source-id: 081e025a2b185f4cadba657315d2cc47fb4ffa6e --- .../react-native/React/CoreModules/RCTAccessibilityManager.mm | 1 - packages/react-native/React/CoreModules/RCTEventDispatcher.mm | 2 -- packages/react-native/React/DevSupport/RCTPackagerConnection.mm | 1 - .../ComponentViews/Modal/RCTModalHostViewComponentView.mm | 1 - .../ComponentViews/ScrollView/RCTScrollViewComponentView.mm | 1 - packages/react-native/React/Views/RCTViewManager.m | 1 - 6 files changed, 7 deletions(-) diff --git a/packages/react-native/React/CoreModules/RCTAccessibilityManager.mm b/packages/react-native/React/CoreModules/RCTAccessibilityManager.mm index 04726aa4de7..b40e3661403 100644 --- a/packages/react-native/React/CoreModules/RCTAccessibilityManager.mm +++ b/packages/react-native/React/CoreModules/RCTAccessibilityManager.mm @@ -9,7 +9,6 @@ #import "RCTAccessibilityManager+Internal.h" #import -#import #import #import #import diff --git a/packages/react-native/React/CoreModules/RCTEventDispatcher.mm b/packages/react-native/React/CoreModules/RCTEventDispatcher.mm index 9f8bb3306f0..6bf4508067b 100644 --- a/packages/react-native/React/CoreModules/RCTEventDispatcher.mm +++ b/packages/react-native/React/CoreModules/RCTEventDispatcher.mm @@ -8,8 +8,6 @@ #import "RCTEventDispatcher.h" #import -#import -#import #import #import #import diff --git a/packages/react-native/React/DevSupport/RCTPackagerConnection.mm b/packages/react-native/React/DevSupport/RCTPackagerConnection.mm index aac492a4f30..22df5f333bb 100644 --- a/packages/react-native/React/DevSupport/RCTPackagerConnection.mm +++ b/packages/react-native/React/DevSupport/RCTPackagerConnection.mm @@ -12,7 +12,6 @@ #import #import -#import #import #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 7c09d9cf73e..73de2f509e4 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm @@ -7,7 +7,6 @@ #import "RCTModalHostViewComponentView.h" -#import #import #import #import diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm index d9e3b901824..00653abc9fd 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm @@ -8,7 +8,6 @@ #import "RCTScrollViewComponentView.h" #import -#import #import #import diff --git a/packages/react-native/React/Views/RCTViewManager.m b/packages/react-native/React/Views/RCTViewManager.m index 2cb5281e0ee..b9bf09dd4e6 100644 --- a/packages/react-native/React/Views/RCTViewManager.m +++ b/packages/react-native/React/Views/RCTViewManager.m @@ -10,7 +10,6 @@ #import "RCTAssert.h" #import "RCTBorderCurve.h" #import "RCTBorderStyle.h" -#import "RCTBridge.h" #import "RCTConvert+Transform.h" #import "RCTConvert.h" #import "RCTCursor.h"