Skip to content

Commit 31ae37f

Browse files
NaturalclarMateusAndradelukebarsnarender2031
authored
1.2.1 (#134)
Co-authored-by: Mateus Andrade <[email protected]> Co-authored-by: Lukas Baranauskas <[email protected]> Co-authored-by: narender2031 <[email protected]>
1 parent 34b1c59 commit 31ae37f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

js/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class PushNotificationIOS {
7777
_isRemote: boolean;
7878
_remoteNotificationCompleteCallbackCalled: boolean;
7979
_threadID: string;
80+
_fireDate: string | Date;
8081

8182
static FetchResult: FetchResult = {
8283
NewData: 'UIBackgroundFetchResultNewData',
@@ -388,6 +389,7 @@ class PushNotificationIOS {
388389
this._category = notifVal.category;
389390
this._contentAvailable = notifVal['content-available'];
390391
this._threadID = notifVal['thread-id'];
392+
this._fireDate = notifVal.fireDate;
391393
} else {
392394
this._data[notifKey] = notifVal;
393395
}
@@ -399,6 +401,7 @@ class PushNotificationIOS {
399401
this._alert = nativeNotif.alertBody;
400402
this._data = nativeNotif.userInfo;
401403
this._category = nativeNotif.category;
404+
this._fireDate = nativeNotif.fireDate;
402405
}
403406
}
404407

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-community/push-notification-ios",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "React Native Push Notification API for iOS",
55
"main": "js/index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)