diff --git a/packages/react-native/React/Base/RCTRootView.h b/packages/react-native/React/Base/RCTRootView.h index 6ed9c5b8fc48f2..08113e91d343eb 100644 --- a/packages/react-native/React/Base/RCTRootView.h +++ b/packages/react-native/React/Base/RCTRootView.h @@ -77,11 +77,6 @@ extern initialProperties:(nullable NSDictionary *)initialProperties launchOptions:(nullable NSDictionary *)launchOptions; -/** - * This API allows RCTRootView users to know if the root view is backed by the bridge. - */ -@property (nonatomic, readonly) BOOL hasBridge; - /** * This API allows users of RCTRootView to access other NativeModules, without * directly accessing the bridge. diff --git a/packages/react-native/React/Base/RCTRootView.m b/packages/react-native/React/Base/RCTRootView.m index a7b9b22881543f..113f44dc27ebda 100644 --- a/packages/react-native/React/Base/RCTRootView.m +++ b/packages/react-native/React/Base/RCTRootView.m @@ -121,11 +121,6 @@ - (UIView *)view return self; } -- (BOOL)hasBridge -{ - return _bridge != nil; -} - - (RCTModuleRegistry *)moduleRegistry { return _bridge.moduleRegistry; diff --git a/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h b/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h index 647615e98f92ef..c11084908cc2ca 100644 --- a/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +++ b/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h @@ -27,7 +27,6 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, readonly) NSString *moduleName; @property (nonatomic, strong, readonly) RCTBridge *bridge; -@property (nonatomic, readonly) BOOL hasBridge; @property (nonatomic, strong, readonly) RCTModuleRegistry *moduleRegistry; @property (nonatomic, strong, readonly) id eventDispatcher; @property (nonatomic, copy, readwrite) NSDictionary *appProperties; diff --git a/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm b/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm index a7c67cffcc68c5..bd2c753fc33c52 100644 --- a/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +++ b/packages/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm @@ -113,11 +113,6 @@ - (instancetype)initWithSurface:(id)surface return self; } -- (BOOL)hasBridge -{ - return _bridge != nil; -} - - (RCTModuleRegistry *)moduleRegistry { // In bridgeless mode, RCTSurfaceHostingProxyRootView is created with an RCTModuleRegistry