| 
				
			 | 
			
			
				@@ -70,7 +70,8 @@ class ReactNativePermissions { 
			 | 
		
	
		
			
			| 
				70
			 | 
			
				70
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				71
			 | 
			
				71
			 | 
			
			
				 		return RNPermissions.request(androidPermission) 
			 | 
		
	
		
			
			| 
				72
			 | 
			
				72
			 | 
			
			
				 			.then(res => { 
			 | 
		
	
		
			
			| 
				73
			 | 
			
				
			 | 
			
			
				-				// For OS versions prior to Android M, request to native module resolve to boolean 
			 | 
		
	
		
			
			| 
				
			 | 
			
				73
			 | 
			
			
				+				// RNPermissions.request() to native module resolves to boolean 
			 | 
		
	
		
			
			| 
				
			 | 
			
				74
			 | 
			
			
				+				// rather than string if running on OS version prior to Android M  
			 | 
		
	
		
			
			| 
				74
			 | 
			
				75
			 | 
			
			
				 				if (typeof res === 'boolean') return res ? 'authorized' : 'denied'; 
			 | 
		
	
		
			
			| 
				75
			 | 
			
				76
			 | 
			
			
				 				return setDidAskOnce(permission) 
			 | 
		
	
		
			
			| 
				76
			 | 
			
				77
			 | 
			
			
				 					.then(() => RESULTS[res]) 
			 |