瀏覽代碼

Detaching stack viewControllers on dismissModal

yogevbd 6 年之前
父節點
當前提交
e41f9884e4
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      lib/ios/RNNCommandsHandler.m

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

@@ -230,6 +230,8 @@ static NSString* const setDefaultOptions	= @"setDefaultOptions";
230 230
 		[_eventEmitter sendOnNavigationCommandCompletion:dismissModal params:@{@"componentId": componentId}];
231 231
 	}];
232 232
 	UIViewController<RNNRootViewProtocol> *modalToDismiss = (UIViewController<RNNRootViewProtocol>*)[_store findComponentForId:componentId];
233
+	[self removePopedViewControllers:modalToDismiss.navigationController.viewControllers];
234
+	
233 235
 	[_modalManager dismissModal:modalToDismiss completion:completion];
234 236
 	
235 237
 	[CATransaction commit];