|
|
@@ -48,6 +48,8 @@ RCT_ENUM_CONVERTER(UIModalTransitionStyle,
|
|
48
|
48
|
[self.bottomTab applyOn:viewController];
|
|
49
|
49
|
[self.sideMenu applyOn:viewController];
|
|
50
|
50
|
[self.overlay applyOn:viewController];
|
|
|
51
|
+ [self.statusBar applyOn:viewController];
|
|
|
52
|
+
|
|
51
|
53
|
[self applyOtherOptionsOn:viewController];
|
|
52
|
54
|
|
|
53
|
55
|
[viewController optionsUpdated];
|
|
|
@@ -63,22 +65,6 @@ RCT_ENUM_CONVERTER(UIModalTransitionStyle,
|
|
63
|
65
|
viewController.view.backgroundColor = screenColor;
|
|
64
|
66
|
}
|
|
65
|
67
|
|
|
66
|
|
- if (self.statusBarBlur) {
|
|
67
|
|
- UIView* curBlurView = [viewController.view viewWithTag:BLUR_STATUS_TAG];
|
|
68
|
|
- if ([self.statusBarBlur boolValue]) {
|
|
69
|
|
- if (!curBlurView) {
|
|
70
|
|
- UIVisualEffectView *blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
|
|
71
|
|
- blur.frame = [[UIApplication sharedApplication] statusBarFrame];
|
|
72
|
|
- blur.tag = BLUR_STATUS_TAG;
|
|
73
|
|
- [viewController.view insertSubview:blur atIndex:0];
|
|
74
|
|
- }
|
|
75
|
|
- } else {
|
|
76
|
|
- if (curBlurView) {
|
|
77
|
|
- [curBlurView removeFromSuperview];
|
|
78
|
|
- }
|
|
79
|
|
- }
|
|
80
|
|
- }
|
|
81
|
|
-
|
|
82
|
68
|
if (self.backgroundImage) {
|
|
83
|
69
|
UIImageView* backgroundImageView = (viewController.view.subviews.count > 0) ? viewController.view.subviews[0] : nil;
|
|
84
|
70
|
if (![backgroundImageView isKindOfClass:[UIImageView class]]) {
|
|
|
@@ -102,10 +88,6 @@ RCT_ENUM_CONVERTER(UIModalTransitionStyle,
|
|
102
|
88
|
backgroundImageView.image = [self.rootBackgroundImage isKindOfClass:[UIImage class]] ? (UIImage*)self.rootBackgroundImage : [RCTConvert UIImage:self.rootBackgroundImage];
|
|
103
|
89
|
[backgroundImageView setContentMode:UIViewContentModeScaleAspectFill];
|
|
104
|
90
|
}
|
|
105
|
|
-
|
|
106
|
|
- if (self.statusBarStyle) {
|
|
107
|
|
- [viewController setNeedsStatusBarAppearanceUpdate];
|
|
108
|
|
- }
|
|
109
|
91
|
|
|
110
|
92
|
[self applyModalOptions:viewController];
|
|
111
|
93
|
}
|