Skip to content

Commit 9a49add

Browse files
authored
Merge pull request #162 from rmrs/rumors
fix checkMultiple handling of permissions with type on iOS (#136)
2 parents 87bac5e + 668331d commit 9a49add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ReactNativePermissions {
5858
}
5959

6060
checkMultiple(permissions) {
61-
return Promise.all(permissions.map(this.check.bind(this)))
61+
return Promise.all(permissions.map(permission => this.check(permission)))
6262
.then(res => res.reduce((pre, cur, i) => {
6363
var name = permissions[i]
6464
pre[name] = cur

0 commit comments

Comments
 (0)