Преглед изворни кода

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({