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.
2 parents 11e376a + ef3b88d commit 0ecbb90Copy full SHA for 0ecbb90
index.android.js
@@ -70,6 +70,9 @@ class ReactNativePermissions {
70
71
return RNPermissions.request(androidPermission)
72
.then(res => {
73
+ // RNPermissions.request() to native module resolves to boolean
74
+ // rather than string if running on OS version prior to Android M
75
+ if (typeof res === 'boolean') return res ? 'authorized' : 'denied';
76
return setDidAskOnce(permission)
77
.then(() => RESULTS[res])
78
});
0 commit comments