|
@@ -46,7 +46,7 @@ class ReactNativePermissions {
|
46
|
46
|
}
|
47
|
47
|
|
48
|
48
|
getPermissionStatus(permission) {
|
49
|
|
- if (permission in RNPTypes) {
|
|
49
|
+ if (RNPTypes.indexOf(permission) >= 0) {
|
50
|
50
|
return RNPermissions.getPermissionStatus(permission)
|
51
|
51
|
} else {
|
52
|
52
|
return Promise.reject(`ReactNativePermissions: ${permission} is not a valid permission type`)
|