expo-notifications
Version:
Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.
10 lines (7 loc) • 384 B
text/typescript
import type { ProxyNativeModule } from 'expo-modules-core';
import type { Notification } from './Notifications.types';
export interface NotificationPresenterModule extends ProxyNativeModule {
getPresentedNotificationsAsync?: () => Promise<Notification[]>;
dismissNotificationAsync?: (identifier: string) => Promise<void>;
dismissAllNotificationsAsync?: () => Promise<void>;
}