Przeglądaj źródła

return componentId on showModal (#4992)

Yogev Ben David 5 lat temu
rodzic
commit
81dc07d5b8
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      lib/ios/RNNCommandsHandler.m

+ 1
- 1
lib/ios/RNNCommandsHandler.m Wyświetl plik

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