Pārlūkot izejas kodu

return componentId on showModal (#4992)

Yogev Ben David 5 gadus atpakaļ
vecāks
revīzija
81dc07d5b8
No account linked to committer's email address
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      lib/ios/RNNCommandsHandler.m

+ 1
- 1
lib/ios/RNNCommandsHandler.m Parādīt failu

@@ -252,7 +252,7 @@ static NSString* const setDefaultOptions	= @"setDefaultOptions";
252 252
 	[newVc renderTreeAndWait:[newVc.resolveOptions.animations.showModal.waitForRender getWithDefaultValue:NO] perform:^{
253 253
 		[_modalManager showModal:newVc animated:[newVc.getCurrentChild.resolveOptions.animations.showModal.enable getWithDefaultValue:YES] hasCustomAnimation:newVc.getCurrentChild.resolveOptions.animations.showModal.hasCustomAnimation completion:^(NSString *componentId) {
254 254
 			[_eventEmitter sendOnNavigationCommandCompletion:showModal commandId:commandId params:@{@"layout": layout}];
255
-			completion(componentId);
255
+			completion(newVc.layoutInfo.componentId);
256 256
 		}];
257 257
 	}];
258 258
 }