|
@@ -8,32 +8,28 @@
|
8
|
8
|
return self.viewControllers.lastObject.supportedInterfaceOrientations;
|
9
|
9
|
}
|
10
|
10
|
|
11
|
|
-- (UIViewController<RNNRootViewProtocol>*)getTopViewController {
|
12
|
|
- return ((UIViewController<RNNRootViewProtocol>*)self.topViewController);
|
13
|
|
-}
|
14
|
|
-
|
15
|
11
|
- (UINavigationController *)navigationController {
|
16
|
12
|
return self;
|
17
|
13
|
}
|
18
|
14
|
|
19
|
15
|
- (BOOL)isCustomViewController {
|
20
|
|
- return [self.getTopViewController isCustomViewController];
|
|
16
|
+ return [self.getLeafViewController isCustomViewController];
|
21
|
17
|
}
|
22
|
18
|
|
23
|
19
|
- (void)mergeOptions:(RNNOptions *)options {
|
24
|
|
- [self.getTopViewController mergeOptions:options];
|
|
20
|
+ [self.getLeafViewController mergeOptions:options];
|
25
|
21
|
}
|
26
|
22
|
|
27
|
23
|
- (UIStatusBarStyle)preferredStatusBarStyle {
|
28
|
|
- return self.getTopViewController.preferredStatusBarStyle;
|
|
24
|
+ return self.getLeafViewController.preferredStatusBarStyle;
|
29
|
25
|
}
|
30
|
26
|
|
31
|
27
|
- (UIModalPresentationStyle)modalPresentationStyle {
|
32
|
|
- return self.getTopViewController.modalPresentationStyle;
|
|
28
|
+ return self.getLeafViewController.modalPresentationStyle;
|
33
|
29
|
}
|
34
|
30
|
|
35
|
31
|
- (void)applyModalOptions {
|
36
|
|
- [self.getTopViewController applyModalOptions];
|
|
32
|
+ [self.getLeafViewController applyModalOptions];
|
37
|
33
|
}
|
38
|
34
|
|
39
|
35
|
- (UIViewController *)popViewControllerAnimated:(BOOL)animated {
|
|
@@ -41,7 +37,7 @@
|
41
|
37
|
}
|
42
|
38
|
|
43
|
39
|
- (NSString *)componentId {
|
44
|
|
- return _componentId ? _componentId : self.getTopViewController.componentId;
|
|
40
|
+ return _componentId ? _componentId : self.getLeafViewController.componentId;
|
45
|
41
|
}
|
46
|
42
|
|
47
|
43
|
- (nullable id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source {
|
|
@@ -53,11 +49,15 @@
|
53
|
49
|
}
|
54
|
50
|
|
55
|
51
|
- (RNNNavigationOptions *)options {
|
56
|
|
- return self.getTopViewController.options;
|
|
52
|
+ return self.getLeafViewController.options;
|
|
53
|
+}
|
|
54
|
+
|
|
55
|
+- (UIViewController *)getLeafViewController {
|
|
56
|
+ return ((UIViewController<RNNRootViewProtocol>*)self.topViewController);
|
57
|
57
|
}
|
58
|
58
|
|
59
|
59
|
- (void)waitForReactViewRender:(BOOL)wait perform:(RNNReactViewReadyCompletionBlock)readyBlock {
|
60
|
|
- [self.getTopViewController waitForReactViewRender:wait perform:readyBlock];
|
|
60
|
+ [self.getLeafViewController waitForReactViewRender:wait perform:readyBlock];
|
61
|
61
|
}
|
62
|
62
|
|
63
|
63
|
- (UIViewController *)childViewControllerForStatusBarStyle {
|