Browse Source

Detaching stack viewControllers on dismissModal

yogevbd 6 years ago
parent
commit
e41f9884e4
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      lib/ios/RNNCommandsHandler.m

+ 2
- 0
lib/ios/RNNCommandsHandler.m View File

@@ -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];