소스 검색

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');
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({