We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11e376a commit 5703d77Copy full SHA for 5703d77
index.android.js
@@ -70,6 +70,8 @@ class ReactNativePermissions {
70
71
return RNPermissions.request(androidPermission)
72
.then(res => {
73
+ // For OS versions prior to Android M, request to native module resolve to boolean
74
+ if (typeof res === 'boolean') return res ? 'authorized' : 'denied';
75
return setDidAskOnce(permission)
76
.then(() => RESULTS[res])
77
});
0 commit comments