@imatis/react-native-notifications
Version:
Advanced Push Notifications (Silent, interactive notifications) for iOS & Android
19 lines (18 loc) • 720 B
TypeScript
export declare class NotificationCategory {
identifier: string;
actions?: NotificationAction[];
constructor(identifier: string, actions?: NotificationAction[]);
}
export interface NotificationTextInput {
buttonTitle: string;
placeholder: string;
}
export type ActivationMode = 'background' | 'foreground' | 'authenticationRequired' | 'destructive';
export declare class NotificationAction {
identifier: string;
activationMode: ActivationMode;
title: string;
authenticationRequired: boolean;
textInput?: NotificationTextInput;
constructor(identifier: string, activationMode: ActivationMode, title: string, authenticationRequired: boolean, textInput?: NotificationTextInput);
}