Skip to content

Commit

Permalink
Fix statusBar.visible option (#5992)
Browse files Browse the repository at this point in the history
Co-authored-by: Guy Carmeli <[email protected]>
  • Loading branch information
yogevbd and guyca authored Mar 3, 2020
1 parent ef58a6c commit a2f5dbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/ios/RNNComponentViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ - (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar {
[self.eventEmitter sendOnSearchBarCancelPressed:self.layoutInfo.componentId];
}

- (BOOL)prefersStatusBarHidden {
return [_presenter isStatusBarVisibility:self.navigationController resolvedOptions:self.resolveOptions];
}

- (UIStatusBarStyle)preferredStatusBarStyle {
return [_presenter getStatusBarStyle:[self resolveOptions]];
}
Expand Down
4 changes: 4 additions & 0 deletions lib/ios/UIViewController+LayoutProtocol.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ - (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return interfaceOrientationMask;
}

- (BOOL)prefersStatusBarHidden {
return [self.presenter isStatusBarVisibility:self.navigationController resolvedOptions:self.resolveOptions];
}

- (UINavigationController *)stack {
if ([self isKindOfClass:UINavigationController.class]) {
return (UINavigationController *)self;
Expand Down

0 comments on commit a2f5dbd

Please sign in to comment.