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,