Browse Source

Merge pull request #120 from gyfelton/patch-1

Change to right API call when check multiple permissions
Yonah Forst 8 years ago
parent
commit
2e3095ff73
1 changed files with 1 additions and 1 deletions
  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({