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

+ 4
- 0
lib/ios/RNNNavigationStackManager.m Parādīt failu

@@ -21,6 +21,10 @@ typedef void (^RNNAnimationBlock)(void);
21 21
 }
22 22
 
23 23
 - (void)pop:(UIViewController *)viewController animated:(BOOL)animated completion:(RNNTransitionCompletionBlock)completion rejection:(RNNTransitionRejectionBlock)rejection {
24
+	if (!viewController.view.window) {
25
+		animated = NO;
26
+	}
27
+	
24 28
 	[self performAnimationBlock:^{
25 29
 		[viewController.navigationController popViewControllerAnimated:animated];
26 30
 	} completion:completion];