Mathieu Acthernoene 4 years ago
parent
commit
27cb57f484
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      README.md
  2. 1
    0
      lib/permissions.android.js

+ 1
- 0
README.md View File

@@ -156,6 +156,7 @@ The current supported permissions are:
156 156
 | Photos             | `photo`             | ✔️  | ✔       |
157 157
 | Contacts           | `contacts`          | ✔️  | ✔       |
158 158
 | Events             | `event`             | ✔️  | ✔       |
159
+| Coarse location    | `coarseLocation`    | ❌  | ✔       |
159 160
 | Bluetooth          | `bluetooth`         | ✔️  | ❌      |
160 161
 | Reminders          | `reminder`          | ✔️  | ❌      |
161 162
 | Push Notifications | `notification`      | ✔️  | ❌      |

+ 1
- 0
lib/permissions.android.js View File

@@ -9,6 +9,7 @@ type RequestOptions = string | {type: string, rationale?: Rationale};
9 9
 
10 10
 const permissionTypes = {
11 11
   location: PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,
12
+  coarseLocation: RNPermissions.PERMISSIONS.ACCESS_COARSE_LOCATION,
12 13
   camera: PermissionsAndroid.PERMISSIONS.CAMERA,
13 14
   microphone: PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
14 15
   contacts: PermissionsAndroid.PERMISSIONS.READ_CONTACTS,