From e12646f8ac4f11e62519b1925054114374fb1383 Mon Sep 17 00:00:00 2001 From: Junichi Takahashi Date: Sun, 18 Jun 2017 14:51:38 +0900 Subject: [PATCH] Fix type Listner to Listener Thank you for the nice library. Fixed typo to sample source code. --- Examples/simple-fcm-client/app/PushController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/simple-fcm-client/app/PushController.js b/Examples/simple-fcm-client/app/PushController.js index 9dbdc22..90319d8 100644 --- a/Examples/simple-fcm-client/app/PushController.js +++ b/Examples/simple-fcm-client/app/PushController.js @@ -29,7 +29,7 @@ export default class PushController extends Component { console.log("INITIAL NOTIFICATION", notif) }); - this.notificationListner = FCM.on(FCMEvent.Notification, notif => { + this.notificationListener = FCM.on(FCMEvent.Notification, notif => { console.log("Notification", notif); if(notif.local_notification){ return; @@ -74,7 +74,7 @@ export default class PushController extends Component { } componentWillUnmount() { - this.notificationListner.remove(); + this.notificationListener.remove(); this.refreshTokenListener.remove(); } -- 2.26.2