Ver código fonte

Fix statusBar.visible option (#5992)

Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
Yogev Ben David 4 anos atrás
pai
commit
a2f5dbd313
Nenhuma conta vinculada ao e-mail do autor do commit

+ 0
- 4
lib/ios/RNNComponentViewController.m Ver arquivo

@@ -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 Ver arquivo

@@ -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;