File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Example/android/app/src/main Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
1820const RESULTS = {
You can’t perform that action at this time.
0 commit comments