|
@@ -58,7 +58,7 @@ class ReactNativePermissions {
|
58
|
58
|
|
59
|
59
|
|
60
|
60
|
getPermissionStatus(permission) {
|
61
|
|
- if (RNPTypes.indexOf(permission) >= 0) {
|
|
61
|
+ if (this.getPermissionTypes().indexOf(permission) >= 0) {
|
62
|
62
|
return RNPermissions.getPermissionStatus(permission)
|
63
|
63
|
} else {
|
64
|
64
|
return Promise.reject(`ReactNativePermissions: ${permission} is not a valid permission type on ${Platform.OS}`)
|