Skip to content

Commit ef3b88d

Browse files
committed
Better comment
1 parent 5703d77 commit ef3b88d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.android.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ class ReactNativePermissions {
7070

7171
return RNPermissions.request(androidPermission)
7272
.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
7475
if (typeof res === 'boolean') return res ? 'authorized' : 'denied';
7576
return setDidAskOnce(permission)
7677
.then(() => RESULTS[res])

0 commit comments

Comments
 (0)