|
@@ -125,9 +125,9 @@
|
125
|
125
|
|
126
|
126
|
|
127
|
127
|
- (UIViewController<RNNRootViewProtocol> *)createStack:(RNNLayoutNode*)node {
|
128
|
|
- RNNNavigationController* vc = [[RNNNavigationController alloc] init];
|
129
|
|
- [vc setComponentId:node.nodeId];
|
130
|
128
|
RNNNavigationOptions* options = [self createOptions:node.data[@"options"]];
|
|
129
|
+ RNNNavigationController* vc = [[RNNNavigationController alloc] initWithOptions:options];
|
|
130
|
+ [vc setComponentId:node.nodeId];
|
131
|
131
|
NSMutableArray* controllers = [NSMutableArray new];
|
132
|
132
|
for (NSDictionary* child in node.children) {
|
133
|
133
|
[controllers addObject:[self fromTree:child]];
|
|
@@ -145,8 +145,7 @@
|
145
|
145
|
NSMutableArray* controllers = [NSMutableArray new];
|
146
|
146
|
for (NSDictionary *child in node.children) {
|
147
|
147
|
UIViewController<RNNRootViewProtocol>* childVc = [self fromTree:child];
|
148
|
|
- RNNRootViewController* rootView = (RNNRootViewController *)[childVc getLeafViewController];
|
149
|
|
- [rootView applyTabBarItem];
|
|
148
|
+ [childVc applyTabBarItem];
|
150
|
149
|
|
151
|
150
|
[controllers addObject:childVc];
|
152
|
151
|
}
|