UNPKG

react-native-onesignal

Version:
24 lines (19 loc) 589 B
import OSNotification from '../OSNotification'; import NotificationWillDisplayEvent from '../events/NotificationWillDisplayEvent'; export type NotificationEventName = | 'click' | 'foregroundWillDisplay' | 'permissionChange'; export type NotificationEventTypeMap = { click: NotificationClickEvent; foregroundWillDisplay: NotificationWillDisplayEvent; permissionChange: boolean; }; export interface NotificationClickEvent { result: NotificationClickResult; notification: OSNotification; } export interface NotificationClickResult { actionId?: string; url?: string; }