Skip to content

Commit 5360a5c

Browse files
committed
Add SMS data to DeviceState
* Add smsNumber, smsUserId and isSMSSubscribed to DeviceState
1 parent 6fcee27 commit 5360a5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,12 @@ declare module 'react-native-onesignal' {
115115
pushToken : string;
116116
emailUserId : string;
117117
emailAddress : string;
118+
smsUserId : string;
119+
smsNumber : string;
118120
isSubscribed : boolean;
119121
isPushDisabled : boolean;
120122
isEmailSubscribed : boolean;
123+
isSMSSubscribed : boolean;
121124
hasNotificationPermission ?: boolean; // ios only
122125
notificationPermissionStatus ?: IosPermissionStatus; // ios only
123126
// areNotificationsEnabled (android) not included since it is converted to hasNotificationPermission in bridge

0 commit comments

Comments
 (0)