yogevbd 6 yıl önce
ebeveyn
işleme
9de6a1fe4b

+ 4
- 0
lib/ios/RNNNavigationController.m Dosyayı Görüntüle

@@ -36,4 +36,8 @@
36 36
 	return ((UIViewController<RNNRootViewProtocol>*)self.topViewController).options;
37 37
 }
38 38
 
39
+- (UIViewController *)childViewControllerForStatusBarStyle {
40
+	return self.topViewController;
41
+}
42
+
39 43
 @end

+ 4
- 0
lib/ios/RNNNavigationOptions.m Dosyayı Görüntüle

@@ -102,6 +102,10 @@ RCT_ENUM_CONVERTER(UIModalTransitionStyle,
102 102
 		backgroundImageView.image = [self.rootBackgroundImage isKindOfClass:[UIImage class]] ? (UIImage*)self.rootBackgroundImage : [RCTConvert UIImage:self.rootBackgroundImage];
103 103
 		[backgroundImageView setContentMode:UIViewContentModeScaleAspectFill];
104 104
 	}
105
+	
106
+	if (self.statusBarStyle) {
107
+		[viewController setNeedsStatusBarAppearanceUpdate];
108
+	}
105 109
     
106 110
     [self applyModalOptions:viewController];
107 111
 }