From fac0767d5de791b54ca2b18365a5caa43c910dbf Mon Sep 17 00:00:00 2001 From: Ryan Grey Date: Mon, 23 Jul 2018 16:52:24 +0100 Subject: [PATCH] pass noop for android platform --- lib/modules/notifications/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/modules/notifications/index.js b/lib/modules/notifications/index.js index 2f2db9c9..dacb3c9b 100644 --- a/lib/modules/notifications/index.js +++ b/lib/modules/notifications/index.js @@ -90,7 +90,15 @@ export default class Notifications extends ModuleBase { 'notifications_notification_displayed', (notification: NativeNotification) => { const rnNotification = new Notification(notification); - const done = (fetchResult: string) => getNativeModule(this).complete(rnNotification.notificationId, fetchResult); + const done = Platform.select({ + ios: (fetchResult: string) => + getNativeModule(this).complete( + rnNotification.notificationId, + fetchResult + ), + android: () => {}, + }); + SharedEventEmitter.emit( 'onNotificationDisplayed', rnNotification,