Explorar el Código

Change to right API call when check multiple permissions

Elton Gao hace 7 años
padre
commit
f76f25286e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      README.md

+ 1
- 1
README.md Ver fichero

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