Browse Source

Merge pull request #162 from rmrs/rumors

fix checkMultiple handling of permissions with type on iOS (#136)
Yonah Forst 7 years ago
parent
commit
9a49add8f3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      index.ios.js

+ 1
- 1
index.ios.js View File

@@ -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