瀏覽代碼

Merge pull request #199 from wassgha/patch-1

Fixed bug with Android < 23
Mathieu Acthernoene 7 年之前
父節點
當前提交
36a1d0efa6
No account linked to committer's email address
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      lib/permissions.android.js

+ 2
- 2
lib/permissions.android.js 查看文件

@@ -13,8 +13,8 @@ const permissionTypes = {
13 13
   microphone: PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
14 14
   contacts: PermissionsAndroid.PERMISSIONS.READ_CONTACTS,
15 15
   event: PermissionsAndroid.PERMISSIONS.READ_CALENDAR,
16
-  storage: PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE,
17
-  photo: PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE,
16
+  storage: PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,
17
+  photo: PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,
18 18
   callPhone: PermissionsAndroid.PERMISSIONS.CALL_PHONE,
19 19
   readSms: PermissionsAndroid.PERMISSIONS.READ_SMS,
20 20
   receiveSms: PermissionsAndroid.PERMISSIONS.RECEIVE_SMS,