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
 		[_eventEmitter sendOnNavigationCommandCompletion:dismissModal params:@{@"componentId": componentId}];
230
 		[_eventEmitter sendOnNavigationCommandCompletion:dismissModal params:@{@"componentId": componentId}];
231
 	}];
231
 	}];
232
 	UIViewController<RNNRootViewProtocol> *modalToDismiss = (UIViewController<RNNRootViewProtocol>*)[_store findComponentForId:componentId];
232
 	UIViewController<RNNRootViewProtocol> *modalToDismiss = (UIViewController<RNNRootViewProtocol>*)[_store findComponentForId:componentId];
233
+	[self removePopedViewControllers:modalToDismiss.navigationController.viewControllers];
234
+	
233
 	[_modalManager dismissModal:modalToDismiss completion:completion];
235
 	[_modalManager dismissModal:modalToDismiss completion:completion];
234
 	
236
 	
235
 	[CATransaction commit];
237
 	[CATransaction commit];