|
@@ -20,7 +20,7 @@
|
20
|
20
|
self = [super init];
|
21
|
21
|
self.componentId = componentId;
|
22
|
22
|
self.componentName = name;
|
23
|
|
- self.navigationOptions = options;
|
|
23
|
+ self.options = options;
|
24
|
24
|
self.eventEmitter = eventEmitter;
|
25
|
25
|
self.animator = animator;
|
26
|
26
|
self.view = [creator createRootView:self.componentName rootViewId:self.componentId];
|
|
@@ -37,7 +37,7 @@
|
37
|
37
|
|
38
|
38
|
-(void)viewWillAppear:(BOOL)animated{
|
39
|
39
|
[super viewWillAppear:animated];
|
40
|
|
- [self.navigationOptions applyOn:self];
|
|
40
|
+ [self.options applyOn:self];
|
41
|
41
|
}
|
42
|
42
|
|
43
|
43
|
- (void)viewDidLoad {
|
|
@@ -49,22 +49,22 @@
|
49
|
49
|
}
|
50
|
50
|
|
51
|
51
|
- (BOOL)prefersStatusBarHidden {
|
52
|
|
- if ([self.navigationOptions.statusBarHidden boolValue]) {
|
|
52
|
+ if ([self.options.statusBarHidden boolValue]) {
|
53
|
53
|
return YES;
|
54
|
|
- } else if ([self.navigationOptions.statusBarHideWithTopBar boolValue]) {
|
|
54
|
+ } else if ([self.options.statusBarHideWithTopBar boolValue]) {
|
55
|
55
|
return self.navigationController.isNavigationBarHidden;
|
56
|
56
|
}
|
57
|
57
|
return NO;
|
58
|
58
|
}
|
59
|
59
|
|
60
|
60
|
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
|
61
|
|
- return self.navigationOptions.supportedOrientations;
|
|
61
|
+ return self.options.supportedOrientations;
|
62
|
62
|
}
|
63
|
63
|
|
64
|
64
|
- (BOOL)hidesBottomBarWhenPushed
|
65
|
65
|
{
|
66
|
|
- if (self.navigationOptions.bottomTabs && self.navigationOptions.bottomTabs.hidden) {
|
67
|
|
- return [self.navigationOptions.bottomTabs.hidden boolValue];
|
|
66
|
+ if (self.options.bottomTabs && self.options.bottomTabs.hidden) {
|
|
67
|
+ return [self.options.bottomTabs.hidden boolValue];
|
68
|
68
|
}
|
69
|
69
|
return NO;
|
70
|
70
|
}
|
|
@@ -81,7 +81,7 @@
|
81
|
81
|
|
82
|
82
|
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated{
|
83
|
83
|
RNNRootViewController* vc = (RNNRootViewController*)viewController;
|
84
|
|
- if (![vc.navigationOptions.backButtonTransition isEqualToString:@"custom"]){
|
|
84
|
+ if (![vc.options.backButtonTransition isEqualToString:@"custom"]){
|
85
|
85
|
navigationController.delegate = nil;
|
86
|
86
|
}
|
87
|
87
|
}
|
|
@@ -104,11 +104,11 @@
|
104
|
104
|
}
|
105
|
105
|
|
106
|
106
|
-(void)applyTabBarItem {
|
107
|
|
- [self.navigationOptions.bottomTab applyOn:self];
|
|
107
|
+ [self.options.bottomTab applyOn:self];
|
108
|
108
|
}
|
109
|
109
|
|
110
|
110
|
-(void)applyTopTabsOptions {
|
111
|
|
- [self.navigationOptions.topTab applyOn:self];
|
|
111
|
+ [self.options.topTab applyOn:self];
|
112
|
112
|
}
|
113
|
113
|
|
114
|
114
|
/**
|