|
@@ -65,7 +65,6 @@
|
65
|
65
|
|
66
|
66
|
UIViewController<RNNRootViewProtocol> *newVc = [_controllerFactory createLayoutAndSaveToStore:layout];
|
67
|
67
|
[_navigationStackManager push:newVc onTop:componentId completion:^{
|
68
|
|
- [_controllerFactory.eventEmitter sendNavigationEvent:[RNNNavigationEvent create:kPush fromComponent:componentId toComponent:newVc.componentId]];
|
69
|
68
|
completion();
|
70
|
69
|
}];
|
71
|
70
|
}
|
|
@@ -74,7 +73,6 @@
|
74
|
73
|
[self assertReady];
|
75
|
74
|
[CATransaction begin];
|
76
|
75
|
[CATransaction setCompletionBlock:^{
|
77
|
|
- [_controllerFactory.eventEmitter sendNavigationEvent:[RNNNavigationEvent create:kPop fromComponent:nil toComponent:componentId]];
|
78
|
76
|
completion();
|
79
|
77
|
}];
|
80
|
78
|
|
|
@@ -97,7 +95,6 @@
|
97
|
95
|
[self assertReady];
|
98
|
96
|
[CATransaction begin];
|
99
|
97
|
[CATransaction setCompletionBlock:^{
|
100
|
|
- [_controllerFactory.eventEmitter sendNavigationEvent:[RNNNavigationEvent create:kPopTo fromComponent:nil toComponent:componentId]];
|
101
|
98
|
completion();
|
102
|
99
|
}];
|
103
|
100
|
|
|
@@ -110,7 +107,6 @@
|
110
|
107
|
[self assertReady];
|
111
|
108
|
[CATransaction begin];
|
112
|
109
|
[CATransaction setCompletionBlock:^{
|
113
|
|
- [_controllerFactory.eventEmitter sendNavigationEvent:[RNNNavigationEvent create:kPopToRoot fromComponent:componentId toComponent:nil]];
|
114
|
110
|
completion();
|
115
|
111
|
}];
|
116
|
112
|
|
|
@@ -124,7 +120,6 @@
|
124
|
120
|
|
125
|
121
|
UIViewController<RNNRootViewProtocol> *newVc = [_controllerFactory createLayoutAndSaveToStore:layout];
|
126
|
122
|
[_modalManager showModal:newVc completion:^{
|
127
|
|
- [_controllerFactory.eventEmitter sendNavigationEvent:[RNNNavigationEvent create:kShowModal fromComponent:nil toComponent:newVc.componentId]];
|
128
|
123
|
completion();
|
129
|
124
|
}];
|
130
|
125
|
}
|
|
@@ -133,7 +128,6 @@
|
133
|
128
|
[self assertReady];
|
134
|
129
|
[CATransaction begin];
|
135
|
130
|
[CATransaction setCompletionBlock:^{
|
136
|
|
- [_controllerFactory.eventEmitter sendNavigationEvent:[RNNNavigationEvent create:kDismissModal fromComponent:componentId toComponent:nil]];
|
137
|
131
|
completion();
|
138
|
132
|
}];
|
139
|
133
|
|
|
@@ -146,7 +140,6 @@
|
146
|
140
|
[self assertReady];
|
147
|
141
|
[CATransaction begin];
|
148
|
142
|
[CATransaction setCompletionBlock:^{
|
149
|
|
- [_controllerFactory.eventEmitter sendNavigationEvent:[RNNNavigationEvent create:kDismissAllModals fromComponent:nil toComponent:nil]];
|
150
|
143
|
completion();
|
151
|
144
|
}];
|
152
|
145
|
|
|
@@ -159,7 +152,6 @@
|
159
|
152
|
[self assertReady];
|
160
|
153
|
UIViewController<RNNRootViewProtocol>* overlayVC = [_controllerFactory createOverlay:layout];
|
161
|
154
|
[_overlayManager showOverlay:overlayVC completion:^{
|
162
|
|
- [_controllerFactory.eventEmitter sendNavigationEvent:[RNNNavigationEvent create:kShowOverlay fromComponent:nil toComponent:overlayVC.componentId]];
|
163
|
155
|
completion();
|
164
|
156
|
}];
|
165
|
157
|
}
|
|
@@ -167,7 +159,6 @@
|
167
|
159
|
- (void)dismissOverlay:(NSString*)componentId completion:(RNNTransitionCompletionBlock)completion {
|
168
|
160
|
[self assertReady];
|
169
|
161
|
[_overlayManager dismissOverlay:componentId completion:^{
|
170
|
|
- [_controllerFactory.eventEmitter sendNavigationEvent:[RNNNavigationEvent create:kDismissOverlay fromComponent:componentId toComponent:nil]];
|
171
|
162
|
completion();
|
172
|
163
|
}];
|
173
|
164
|
}
|