Procházet zdrojové kódy

return componentId on showModal (#4992)

Yogev Ben David před 5 roky
rodič
revize
81dc07d5b8
No account linked to committer's email address
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      lib/ios/RNNCommandsHandler.m

+ 1
- 1
lib/ios/RNNCommandsHandler.m Zobrazit soubor

@@ -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
 }