Browse Source

Fixed bug with Android < 23

Wassim Gharbi 7 years ago
parent
commit
077af3cf09
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/permissions.android.js

+ 2
- 2
lib/permissions.android.js View File

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