Skip to content

Commit

Permalink
Fix build when fabric is enabled (#7771)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd authored Aug 13, 2023
1 parent 6da2f70 commit 72a55dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ios/RNNComponentRootView.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ - (instancetype)init {
return self;
}

#ifndef RCT_NEW_ARCH_ENABLED
- (instancetype)initWithBridge:(RCTBridge *)bridge
moduleName:(NSString *)moduleName
initialProperties:(NSDictionary *)initialProperties
Expand All @@ -21,6 +22,7 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
[bridge.uiManager setAvailableSize:UIScreen.mainScreen.bounds.size forRootView:self];
return self;
}
#endif

- (NSString *)componentType {
return ComponentTypeScreen;
Expand Down

0 comments on commit 72a55dc

Please sign in to comment.