Browse Source

Merge pull request #162 from rmrs/rumors

fix checkMultiple handling of permissions with type on iOS (#136)
Yonah Forst 8 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

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