瀏覽代碼

check permission in the permissionTypes

Jonathan Stanton 8 年之前
父節點
當前提交
9d50f167de
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      ReactNativePermissions.js

+ 1
- 1
ReactNativePermissions.js 查看文件

@@ -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}`)