ソースを参照

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
 
61
 
62
   //check the status of multiple permissions
62
   //check the status of multiple permissions
63
   _checkCameraAndPhotos() {
63
   _checkCameraAndPhotos() {
64
-    Permissions.check(['camera', 'photo'])
64
+    Permissions.checkMultiple(['camera', 'photo'])
65
       .then(response => {
65
       .then(response => {
66
         //response is an object mapping type to permission
66
         //response is an object mapping type to permission
67
         this.setState({
67
         this.setState({