Browse Source

Fix statusBar.visible option (#5992)

Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
Yogev Ben David 4 years ago
parent
commit
a2f5dbd313
No account linked to committer's email address
2 changed files with 4 additions and 4 deletions
  1. 0
    4
      lib/ios/RNNComponentViewController.m
  2. 4
    0
      lib/ios/UIViewController+LayoutProtocol.m

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

@@ -76,10 +76,6 @@
76 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 79
 - (UIStatusBarStyle)preferredStatusBarStyle {
84 80
 	return [_presenter getStatusBarStyle:[self resolveOptions]];
85 81
 }

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

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