UNPKG

992 BTypeScriptView Raw
1import { LocalNotification, LocalNotificationId } from './Notifications.types';
2import './ExponentNotifications.fx.web';
3declare const _default: {
4 presentLocalNotification(notification: LocalNotification): Promise<LocalNotificationId>;
5 scheduleLocalNotification(notification: any, options?: {
6 time?: Date | number;
7 repeat?: 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
8 intervalMs?: number;
9 }): Promise<string>;
10 dismissNotification(notificationId?: string | undefined): Promise<void>;
11 dismissAllNotifications(): Promise<void>;
12 cancelScheduledNotificationAsync(notificationId: string): Promise<void>;
13 cancelAllScheduledNotificationsAsync(): Promise<void>;
14 getExponentPushTokenAsync(): Promise<string>;
15 getDevicePushTokenAsync(): Promise<{
16 type: string;
17 data: object;
18 }>;
19 getBadgeNumberAsync(): Promise<number>;
20 setBadgeNumberAsync(badgeNumber: number): Promise<void>;
21};
22export default _default;