@elemental-design/expo-notifications
Version:
13 lines (12 loc) • 783 B
TypeScript
import { ProxyNativeModule } from '@unimodules/core';
import { Notification, NotificationContentInput, ActionType } from './Notifications.types';
export interface NotificationPresenterModule extends ProxyNativeModule {
getPresentedNotificationsAsync: () => Promise<Notification[]>;
presentNotificationAsync: (identifier: string, content: NotificationContentInput) => Promise<string>;
dismissNotificationAsync: (identifier: string) => Promise<void>;
dismissAllNotificationsAsync: () => Promise<void>;
createCategoryAsync: (categoryId: string, actions: ActionType[], previewPlaceholder?: string | null) => Promise<void>;
deleteCategoryAsync: (categoryId: string) => Promise<void>;
}
declare const _default: NotificationPresenterModule;
export default _default;