Browse Source

Better comment

bienur 8 years ago
parent
commit
ef3b88de16
1 changed files with 2 additions and 1 deletions
  1. 2 1
      index.android.js

+ 2 - 1
index.android.js

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