Skip to content

Commit

Permalink
Revert "Remove unneeded RCTUIManager setAvailableSize call (#7412)" (#…
Browse files Browse the repository at this point in the history
…7458)

This reverts commit 345344a.
  • Loading branch information
danilobuerger authored Feb 16, 2022
1 parent 9101930 commit 1394d50
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/ios/RNNComponentRootView.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

@implementation RNNComponentRootView

- (instancetype)initWithBridge:(RCTBridge *)bridge
moduleName:(NSString *)moduleName
initialProperties:(NSDictionary *)initialProperties
eventEmitter:(RNNEventEmitter *)eventEmitter
reactViewReadyBlock:(RNNReactViewReadyCompletionBlock)reactViewReadyBlock {
self = [super initWithBridge:bridge
moduleName:moduleName
initialProperties:initialProperties
eventEmitter:eventEmitter
reactViewReadyBlock:reactViewReadyBlock];
[bridge.uiManager setAvailableSize:UIScreen.mainScreen.bounds.size forRootView:self];
return self;
}

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

0 comments on commit 1394d50

Please sign in to comment.