react-native-onesignal
Version:
React Native OneSignal SDK
17 lines (16 loc) • 607 B
TypeScript
import OSNotification from '../OSNotification';
import NotificationWillDisplayEvent from '../events/NotificationWillDisplayEvent';
export declare type NotificationEventName = 'click' | 'foregroundWillDisplay' | 'permissionChange';
export declare type NotificationEventTypeMap = {
click: NotificationClickEvent;
foregroundWillDisplay: NotificationWillDisplayEvent;
permissionChange: boolean;
};
export interface NotificationClickEvent {
result: NotificationClickResult;
notification: OSNotification;
}
export interface NotificationClickResult {
actionId?: string;
url?: string;
}