|
@@ -52,8 +52,8 @@
|
52
|
52
|
RNNNavigationOptions* defaultOptions = [[RNNNavigationOptions alloc] initEmptyOptions];
|
53
|
53
|
defaultOptions.bottomTab.text = [[Text alloc] initWithValue:@"default text"];
|
54
|
54
|
defaultOptions.bottomTab.selectedIconColor = [[Color alloc] initWithValue:UIColor.blueColor];
|
55
|
|
-
|
56
|
|
- UIViewController* child = [[UIViewController alloc] initWithLayoutInfo:nil creator:nil options:childOptions defaultOptions:defaultOptions presenter:presenter eventEmitter:nil childViewControllers:nil];
|
|
55
|
+
|
|
56
|
+ UIViewController* child = [[UIViewController alloc] initWithLayoutInfo:[RNNLayoutInfo new] creator:nil options:childOptions defaultOptions:defaultOptions presenter:presenter eventEmitter:nil childViewControllers:nil];
|
57
|
57
|
RNNStackController* parent = [[RNNStackController alloc] initWithLayoutInfo:nil creator:nil options:parentOptions defaultOptions:defaultOptions presenter:presenter eventEmitter:nil childViewControllers:@[child]];
|
58
|
58
|
|
59
|
59
|
XCTAssertEqual([parent getCurrentChild], child);
|
|
@@ -88,10 +88,10 @@
|
88
|
88
|
|
89
|
89
|
RNNNavigationOptions * childOptions = [[RNNNavigationOptions alloc] initEmptyOptions];
|
90
|
90
|
childOptions.bottomTab.text = [[Text alloc] initWithValue:@"Child tab text"];
|
91
|
|
- UIViewController* child = [[UIViewController alloc] initWithLayoutInfo:nil creator:nil options:childOptions defaultOptions:nil presenter:[RNNComponentPresenter new] eventEmitter:nil childViewControllers:nil];
|
|
91
|
+ UIViewController* child = [[UIViewController alloc] initWithLayoutInfo:[RNNLayoutInfo new] creator:nil options:childOptions defaultOptions:nil presenter:[RNNComponentPresenter new] eventEmitter:nil childViewControllers:nil];
|
92
|
92
|
RNNNavigationOptions * initialOptions = [[RNNNavigationOptions alloc] initEmptyOptions];
|
93
|
93
|
initialOptions.topBar.title.text = [[Text alloc] initWithValue:@"Initial title"];
|
94
|
|
- RNNStackController* uut = [[RNNStackController alloc] initWithLayoutInfo:nil creator:nil options:initialOptions defaultOptions:nil presenter:presenter eventEmitter:nil childViewControllers:@[child]];
|
|
94
|
+ RNNStackController* uut = [[RNNStackController alloc] initWithLayoutInfo:[RNNLayoutInfo new] creator:nil options:initialOptions defaultOptions:nil presenter:presenter eventEmitter:nil childViewControllers:@[child]];
|
95
|
95
|
[parent addChildViewController:uut];
|
96
|
96
|
|
97
|
97
|
[uut mergeOptions:toMerge];
|