Skip to content

Commit df6f730

Browse files
author
Yonah Forst
committed
Merge branch 'vspedr-master'
2 parents c7b7860 + 1fd9763 commit df6f730

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Example/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
1313
<uses-permission android:name="android.permission.READ_CONTACTS"/>
1414
<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"/>
1617

1718
<application
1819
android:name=".MainApplication"

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ The current supported permissions are:
88
- Photos
99
- Contacts
1010
- Events
11-
- Call Phone *(Android Only)*
1211
- Reminders *(iOS only)*
1312
- Bluetooth *(iOS only)*
1413
- Push Notifications *(iOS only)*
1514
- Background Refresh *(iOS only)*
1615
- Speech Recognition *(iOS only)*
16+
- Call Phone *(Android Only)*
17+
- Read/Receive SMS *(Android only)*
1718

1819

1920
| Version | React Native Support |
@@ -122,6 +123,8 @@ Promises resolve into one of these statuses
122123
|`speechRecognition`| ✔️ ||
123124
|`storage`| ❌️ ||
124125
|`callPhone`| ❌️ ||
126+
|`readSms`| ❌️ ||
127+
|`receiveSms`| ❌️ ||
125128

126129
### Methods
127130
| Method Name | Arguments | Notes

index.android.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const RNPTypes = {
1313
storage: RNPermissions.PERMISSIONS.READ_EXTERNAL_STORAGE,
1414
photo: RNPermissions.PERMISSIONS.READ_EXTERNAL_STORAGE,
1515
call_phone: RNPermissions.PERMISSIONS.CALL_PHONE,
16+
readSms: RNPermissions.PERMISSIONS.READ_SMS,
17+
receiveSms: RNPermissions.PERMISSIONS.RECEIVE_SMS,
1618
}
1719

1820
const RESULTS = {

0 commit comments

Comments
 (0)