Bladeren bron

Merge branch 'vspedr-master'

Yonah Forst 7 jaren geleden
bovenliggende
commit
df6f730a56
3 gewijzigde bestanden met toevoegingen van 8 en 2 verwijderingen
  1. 2
    1
      Example/android/app/src/main/AndroidManifest.xml
  2. 4
    1
      README.md
  3. 2
    0
      index.android.js

+ 2
- 1
Example/android/app/src/main/AndroidManifest.xml Bestand weergeven

@@ -12,7 +12,8 @@
12 12
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
13 13
     <uses-permission android:name="android.permission.READ_CONTACTS"/>
14 14
     <uses-permission android:name="android.permission.READ_CALENDAR"/>
15
-
15
+    <uses-permission android:name="android.permission.READ_SMS"/>
16
+    <uses-permission android:name="android.permission.RECEIVE_SMS"/>
16 17
 
17 18
     <application
18 19
       android:name=".MainApplication"

+ 4
- 1
README.md Bestand weergeven

@@ -8,12 +8,13 @@ The current supported permissions are:
8 8
 - Photos
9 9
 - Contacts
10 10
 - Events
11
-- Call Phone *(Android Only)*
12 11
 - Reminders *(iOS only)*
13 12
 - Bluetooth *(iOS only)*
14 13
 - Push Notifications *(iOS only)*
15 14
 - Background Refresh *(iOS only)*
16 15
 - Speech Recognition *(iOS only)*
16
+- Call Phone *(Android Only)*
17
+- Read/Receive SMS *(Android only)*
17 18
 
18 19
 
19 20
 | Version | React Native Support |
@@ -122,6 +123,8 @@ Promises resolve into one of these statuses
122 123
 |`speechRecognition`| ✔️ | ❌ |
123 124
 |`storage`| ❌️ | ✔ |
124 125
 |`callPhone`| ❌️ | ✔ |
126
+|`readSms`| ❌️ | ✔ |
127
+|`receiveSms`| ❌️ | ✔ |
125 128
 
126 129
 ### Methods
127 130
 | Method Name | Arguments | Notes

+ 2
- 0
index.android.js Bestand weergeven

@@ -13,6 +13,8 @@ const RNPTypes = {
13 13
 	storage: RNPermissions.PERMISSIONS.READ_EXTERNAL_STORAGE,
14 14
 	photo: RNPermissions.PERMISSIONS.READ_EXTERNAL_STORAGE,
15 15
 	call_phone: RNPermissions.PERMISSIONS.CALL_PHONE,
16
+	readSms: RNPermissions.PERMISSIONS.READ_SMS,
17
+	receiveSms: RNPermissions.PERMISSIONS.RECEIVE_SMS,
16 18
 }
17 19
 
18 20
 const RESULTS = {