UNPKG

@elemental-design/expo-notifications

Version:
12 lines (11 loc) 739 B
import { ProxyNativeModule } from '@unimodules/core'; import { NotificationTriggerInput } from './NotificationScheduler.types'; import { NotificationRequest, NotificationContentInput } from './Notifications.types'; export interface NotificationSchedulerModule extends ProxyNativeModule { getAllScheduledNotificationsAsync: () => Promise<NotificationRequest[]>; scheduleNotificationAsync: (identifier: string, notificationContent: NotificationContentInput, trigger: NotificationTriggerInput) => Promise<string>; cancelScheduledNotificationAsync: (identifier: string) => Promise<void>; cancelAllScheduledNotificationsAsync: () => Promise<void>; } declare const _default: NotificationSchedulerModule; export default _default;