yogevbd 6 years ago
parent
commit
15247e316b
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      lib/ios/RNNNavigationStackManager.m

+ 4
- 0
lib/ios/RNNNavigationStackManager.m View File

21
 }
21
 }
22
 
22
 
23
 - (void)pop:(UIViewController *)viewController animated:(BOOL)animated completion:(RNNTransitionCompletionBlock)completion rejection:(RNNTransitionRejectionBlock)rejection {
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
 	[self performAnimationBlock:^{
28
 	[self performAnimationBlock:^{
25
 		[viewController.navigationController popViewControllerAnimated:animated];
29
 		[viewController.navigationController popViewControllerAnimated:animated];
26
 	} completion:completion];
30
 	} completion:completion];