Skip to content

Commit 72a55dc

Browse files
authored
Fix build when fabric is enabled (#7771)
1 parent 6da2f70 commit 72a55dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ios/RNNComponentRootView.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ - (instancetype)init {
88
return self;
99
}
1010

11+
#ifndef RCT_NEW_ARCH_ENABLED
1112
- (instancetype)initWithBridge:(RCTBridge *)bridge
1213
moduleName:(NSString *)moduleName
1314
initialProperties:(NSDictionary *)initialProperties
@@ -21,6 +22,7 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
2122
[bridge.uiManager setAvailableSize:UIScreen.mainScreen.bounds.size forRootView:self];
2223
return self;
2324
}
25+
#endif
2426

2527
- (NSString *)componentType {
2628
return ComponentTypeScreen;

0 commit comments

Comments
 (0)