Sfoglia il codice sorgente

Merge pull request #155 from chuongle/master

Add CALL_PHONE Permission for Android.
Yonah Forst 7 anni fa
parent
commit
c7b78609ad
2 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 2
    0
      README.md
  2. 1
    0
      index.android.js

+ 2
- 0
README.md Vedi File

@@ -8,6 +8,7 @@ The current supported permissions are:
8 8
 - Photos
9 9
 - Contacts
10 10
 - Events
11
+- Call Phone *(Android Only)*
11 12
 - Reminders *(iOS only)*
12 13
 - Bluetooth *(iOS only)*
13 14
 - Push Notifications *(iOS only)*
@@ -120,6 +121,7 @@ Promises resolve into one of these statuses
120 121
 |`backgroundRefresh`| ✔️ | ❌ |
121 122
 |`speechRecognition`| ✔️ | ❌ |
122 123
 |`storage`| ❌️ | ✔ |
124
+|`callPhone`| ❌️ | ✔ |
123 125
 
124 126
 ### Methods
125 127
 | Method Name | Arguments | Notes

+ 1
- 0
index.android.js Vedi File

@@ -12,6 +12,7 @@ const RNPTypes = {
12 12
 	event: RNPermissions.PERMISSIONS.READ_CALENDAR,
13 13
 	storage: RNPermissions.PERMISSIONS.READ_EXTERNAL_STORAGE,
14 14
 	photo: RNPermissions.PERMISSIONS.READ_EXTERNAL_STORAGE,
15
+	call_phone: RNPermissions.PERMISSIONS.CALL_PHONE,
15 16
 }
16 17
 
17 18
 const RESULTS = {