Pārlūkot izejas kodu

Detaching stack viewControllers on dismissModal

yogevbd 6 gadus atpakaļ
vecāks
revīzija
e41f9884e4
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2
    0
      lib/ios/RNNCommandsHandler.m

+ 2
- 0
lib/ios/RNNCommandsHandler.m Parādīt failu

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