소스 검색

Merge pull request #162 from rmrs/rumors

fix checkMultiple handling of permissions with type on iOS (#136)
Yonah Forst 7 년 전
부모
커밋
9a49add8f3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      index.ios.js

+ 1
- 1
index.ios.js 파일 보기

@@ -58,7 +58,7 @@ class ReactNativePermissions {
58 58
 	}
59 59
 
60 60
 	checkMultiple(permissions) {
61
-		return Promise.all(permissions.map(this.check.bind(this)))
61
+		return Promise.all(permissions.map(permission => this.check(permission)))
62 62
 			.then(res => res.reduce((pre, cur, i) => {
63 63
 				var name = permissions[i]
64 64
 				pre[name] = cur