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