Skip to content

Commit

Permalink
Add SMS data to DeviceState
Browse files Browse the repository at this point in the history
* Add smsNumber, smsUserId and isSMSSubscribed to DeviceState
  • Loading branch information
Jeasmine committed May 27, 2021
1 parent 6fcee27 commit 5360a5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,12 @@ declare module 'react-native-onesignal' {
pushToken : string;
emailUserId : string;
emailAddress : string;
smsUserId : string;
smsNumber : string;
isSubscribed : boolean;
isPushDisabled : boolean;
isEmailSubscribed : boolean;
isSMSSubscribed : boolean;
hasNotificationPermission ?: boolean; // ios only
notificationPermissionStatus ?: IosPermissionStatus; // ios only
// areNotificationsEnabled (android) not included since it is converted to hasNotificationPermission in bridge
Expand Down

0 comments on commit 5360a5c

Please sign in to comment.