|
|
@@ -70,6 +70,9 @@ class ReactNativePermissions {
|
|
|
|
|
|
return RNPermissions.request(androidPermission)
|
|
|
.then(res => {
|
|
|
+ // 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])
|
|
|
});
|