This repository was archived by the owner on Jan 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ Notifications.unregister = function() {
145
145
* @param {String } details.ticker - ANDROID ONLY: The ticker displayed in the status bar.
146
146
* @param {Object } details.userInfo - iOS ONLY: The userInfo used in the notification alert.
147
147
*/
148
- Notifications . localNotification = function ( details ) {
148
+ Notifications . localNotification = function ( { ... details } ) {
149
149
if ( 'android' === Platform . os && details && ! details . channelId ) {
150
150
console . warn ( 'No channel id passed, notifications may not work.' ) ;
151
151
}
@@ -225,7 +225,7 @@ Notifications.localNotification = function(details) {
225
225
* @param {Object } details (same as localNotification)
226
226
* @param {Date } details.date - The date and time when the system should deliver the notification
227
227
*/
228
- Notifications . localNotificationSchedule = function ( details ) {
228
+ Notifications . localNotificationSchedule = function ( { ... details } ) {
229
229
if ( 'android' === Platform . os && details && ! details . channelId ) {
230
230
console . warn ( 'No channel id passed, notifications may not work.' ) ;
231
231
}
@@ -331,7 +331,7 @@ Notifications._onRemoteFetch = function(notificationData) {
331
331
}
332
332
} ;
333
333
334
- Notifications . _onAction = function ( notification ) {
334
+ Notifications . _onAction = function ( { ... notification } ) {
335
335
if ( typeof notification . data === 'string' ) {
336
336
try {
337
337
notification . data = JSON . parse ( notificationData . data ) ;
You can’t perform that action at this time.
0 commit comments