From 72a55dcdb72d72e9ca434635014dfc9d43148efa Mon Sep 17 00:00:00 2001 From: Yogev Ben David Date: Sun, 13 Aug 2023 10:50:45 +0300 Subject: [PATCH] Fix build when fabric is enabled (#7771) --- lib/ios/RNNComponentRootView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ios/RNNComponentRootView.m b/lib/ios/RNNComponentRootView.m index 592e54180e9..9835984081f 100644 --- a/lib/ios/RNNComponentRootView.m +++ b/lib/ios/RNNComponentRootView.m @@ -8,6 +8,7 @@ - (instancetype)init { return self; } +#ifndef RCT_NEW_ARCH_ENABLED - (instancetype)initWithBridge:(RCTBridge *)bridge moduleName:(NSString *)moduleName initialProperties:(NSDictionary *)initialProperties @@ -21,6 +22,7 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge [bridge.uiManager setAvailableSize:UIScreen.mainScreen.bounds.size forRootView:self]; return self; } +#endif - (NSString *)componentType { return ComponentTypeScreen;