|
@@ -205,13 +205,13 @@ static NSString* const setDefaultOptions = @"setDefaultOptions";
|
205
|
205
|
[CATransaction commit];
|
206
|
206
|
}
|
207
|
207
|
|
208
|
|
-- (void)showModal:(NSDictionary*)layout completion:(RNNTransitionCompletionBlock)completion {
|
|
208
|
+- (void)showModal:(NSDictionary*)layout completion:(RNNTransitionWithComponentIdCompletionBlock)completion {
|
209
|
209
|
[self assertReady];
|
210
|
210
|
|
211
|
211
|
UIViewController<RNNRootViewProtocol> *newVc = [_controllerFactory createLayoutAndSaveToStore:layout];
|
212
|
|
- [_modalManager showModal:newVc animated:newVc.getLeafViewController.options.animations.showModal.enable completion:^{
|
|
212
|
+ [_modalManager showModal:newVc animated:newVc.getLeafViewController.options.animations.showModal.enable completion:^(NSString *componentId) {
|
213
|
213
|
[_eventEmitter sendOnNavigationCommandCompletion:showModal params:@{@"layout": layout}];
|
214
|
|
- completion();
|
|
214
|
+ completion(componentId);
|
215
|
215
|
}];
|
216
|
216
|
}
|
217
|
217
|
|