瀏覽代碼

Merge pull request #120 from gyfelton/patch-1

Change to right API call when check multiple permissions
Yonah Forst 7 年之前
父節點
當前提交
2e3095ff73
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      README.md

+ 1
- 1
README.md 查看文件

@@ -61,7 +61,7 @@ const Permissions = require('react-native-permissions');
61 61
 
62 62
   //check the status of multiple permissions
63 63
   _checkCameraAndPhotos() {
64
-    Permissions.check(['camera', 'photo'])
64
+    Permissions.checkMultiple(['camera', 'photo'])
65 65
       .then(response => {
66 66
         //response is an object mapping type to permission
67 67
         this.setState({