Browse Source

Fix statusBar.visible option (#5992)

Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
Yogev Ben David 5 years ago
parent
commit
a2f5dbd313
No account linked to committer's email address

+ 0
- 4
lib/ios/RNNComponentViewController.m View File

76
 	[self.eventEmitter sendOnSearchBarCancelPressed:self.layoutInfo.componentId];
76
 	[self.eventEmitter sendOnSearchBarCancelPressed:self.layoutInfo.componentId];
77
 }
77
 }
78
 
78
 
79
-- (BOOL)prefersStatusBarHidden {
80
-	return [_presenter isStatusBarVisibility:self.navigationController resolvedOptions:self.resolveOptions];
81
-}
82
-
83
 - (UIStatusBarStyle)preferredStatusBarStyle {
79
 - (UIStatusBarStyle)preferredStatusBarStyle {
84
 	return [_presenter getStatusBarStyle:[self resolveOptions]];
80
 	return [_presenter getStatusBarStyle:[self resolveOptions]];
85
 }
81
 }

+ 4
- 0
lib/ios/UIViewController+LayoutProtocol.m View File

60
 	return interfaceOrientationMask;
60
 	return interfaceOrientationMask;
61
 }
61
 }
62
 
62
 
63
+- (BOOL)prefersStatusBarHidden {
64
+    return [self.presenter isStatusBarVisibility:self.navigationController resolvedOptions:self.resolveOptions];
65
+}
66
+
63
 - (UINavigationController *)stack {
67
 - (UINavigationController *)stack {
64
     if ([self isKindOfClass:UINavigationController.class]) {
68
     if ([self isKindOfClass:UINavigationController.class]) {
65
         return (UINavigationController *)self;
69
         return (UINavigationController *)self;