From bc4a8dc3d87fd3e0abc90cdcf6cfcdf55647b844 Mon Sep 17 00:00:00 2001 From: yogevbd Date: Mon, 13 Jan 2020 13:30:43 +0200 Subject: [PATCH] Fix e2e --- example/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/index.js b/example/index.js index 776b78a..106fdde 100644 --- a/example/index.js +++ b/example/index.js @@ -26,7 +26,7 @@ class NotificationsExampleApp extends Component { notifications: [...this.state.notifications, notification] }); - completion({alert: notification.data.showAlert, sound: false, badge: false}); + completion({alert: notification.payload.showAlert, sound: false, badge: false}); }); Notifications.events().registerRemoteNotificationOpened((notification, completion) => { @@ -95,7 +95,7 @@ class NotificationsExampleApp extends Component { {`Title: ${notification.title}`} {`Body: ${notification.body}`} - {`Extra Link Param: ${notification.data.link}`} + {`Extra Link Param: ${notification.payload.link}`} ); } @@ -105,7 +105,7 @@ class NotificationsExampleApp extends Component { {`Title: ${notification.title}`} {`Body: ${notification.body}`} - {`Notification Clicked: ${notification.data.link}`} + {`Notification Clicked: ${notification.payload.link}`} ); }