| 
				
			 | 
			
			
				@@ -1,17 +1,12 @@ 
			 | 
		
	
		
			
			| 
				1
			 | 
			
				
			 | 
			
			
				-// 
			 | 
		
	
		
			
			| 
				2
			 | 
			
				
			 | 
			
			
				-//  InteractivePopGestureDelegate.m 
			 | 
		
	
		
			
			| 
				3
			 | 
			
				
			 | 
			
			
				-//  ReactNativeNavigation 
			 | 
		
	
		
			
			| 
				4
			 | 
			
				
			 | 
			
			
				-// 
			 | 
		
	
		
			
			| 
				5
			 | 
			
				
			 | 
			
			
				-//  Created by Arman Dezfuli-Arjomandi on 1/10/19. 
			 | 
		
	
		
			
			| 
				6
			 | 
			
				
			 | 
			
			
				-//  Copyright © 2019 Wix. All rights reserved. 
			 | 
		
	
		
			
			| 
				7
			 | 
			
				
			 | 
			
			
				-// 
			 | 
		
	
		
			
			| 
				8
			 | 
			
				1
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				9
			 | 
			
				2
			 | 
			
			
				 #import "InteractivePopGestureDelegate.h" 
			 | 
		
	
		
			
			| 
				10
			 | 
			
				3
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				11
			 | 
			
				4
			 | 
			
			
				 @implementation InteractivePopGestureDelegate 
			 | 
		
	
		
			
			| 
				12
			 | 
			
				5
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				13
			 | 
			
				6
			 | 
			
			
				 - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { 
			 | 
		
	
		
			
			| 
				14
			 | 
			
				
			 | 
			
			
				-	if (self.navigationController.navigationBarHidden && self.navigationController.viewControllers.count > 1) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				7
			 | 
			
			
				+	if (self.navigationController.viewControllers.count < 2) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8
			 | 
			
			
				+		return NO; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				9
			 | 
			
			
				+	} else if (self.navigationController.navigationBarHidden) { 
			 | 
		
	
		
			
			| 
				15
			 | 
			
				10
			 | 
			
			
				 		return YES; 
			 | 
		
	
		
			
			| 
				16
			 | 
			
				11
			 | 
			
			
				 	} else if (!self.navigationController.navigationBarHidden && self.originalDelegate == nil) { 
			 | 
		
	
		
			
			| 
				17
			 | 
			
				12
			 | 
			
			
				 		return YES; 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -28,8 +23,4 @@ 
			 | 
		
	
		
			
			| 
				28
			 | 
			
				23
			 | 
			
			
				 	} 
			 | 
		
	
		
			
			| 
				29
			 | 
			
				24
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				30
			 | 
			
				25
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				31
			 | 
			
				
			 | 
			
			
				-- (id)forwardingTargetForSelector:(SEL)aSelector { 
			 | 
		
	
		
			
			| 
				32
			 | 
			
				
			 | 
			
			
				-	return self.originalDelegate; 
			 | 
		
	
		
			
			| 
				33
			 | 
			
				
			 | 
			
			
				-} 
			 | 
		
	
		
			
			| 
				34
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				35
			 | 
			
				26
			 | 
			
			
				 @end 
			 |