mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-06 22:38:47 +08:00
pass noop for android platform
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user