pass noop for android platform
This commit is contained in:
parent
b6885b0125
commit
fac0767d5d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user