Browse Source

Merge pull request #155 from chuongle/master

Add CALL_PHONE Permission for Android.
Yonah Forst 8 years ago
parent
commit
c7b78609ad
2 changed files with 3 additions and 0 deletions
  1. 2 0
      README.md
  2. 1 0
      index.android.js

+ 2 - 0
README.md

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

+ 1 - 0
index.android.js

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