Skip to content

Commit

Permalink
Fix white screen flicker on push (#7768)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd authored Aug 10, 2023
1 parent 8527968 commit 6da2f70
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/ios/RNNComponentRootView.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ - (instancetype)init {
self.sizeFlexibility = RCTRootViewSizeFlexibilityWidthAndHeight;
return self;
}

- (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 6da2f70

Please sign in to comment.