yogevbd 6 years ago
parent
commit
9de6a1fe4b
2 changed files with 8 additions and 0 deletions
  1. 4
    0
      lib/ios/RNNNavigationController.m
  2. 4
    0
      lib/ios/RNNNavigationOptions.m

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

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

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

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