瀏覽代碼

return componentId on showModal (#4992)

Yogev Ben David 5 年之前
父節點
當前提交
81dc07d5b8
No account linked to committer's email address
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lib/ios/RNNCommandsHandler.m

+ 1
- 1
lib/ios/RNNCommandsHandler.m 查看文件

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