Browse Source

Better comment

bienur 7 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 View File

@@ -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])