소스 검색

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