Skip to content

Commit f76f252

Browse files
authored
Change to right API call when check multiple permissions
1 parent e7454a9 commit f76f252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const Permissions = require('react-native-permissions');
6161

6262
//check the status of multiple permissions
6363
_checkCameraAndPhotos() {
64-
Permissions.check(['camera', 'photo'])
64+
Permissions.checkMultiple(['camera', 'photo'])
6565
.then(response => {
6666
//response is an object mapping type to permission
6767
this.setState({

0 commit comments

Comments
 (0)