浏览代码

Change to right API call when check multiple permissions

Elton Gao 8 年之前
父节点
当前提交
f76f25286e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.md

+ 1 - 1
README.md

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