expo-quest-notifications
Version:
A fork of [`expo-notifications`](https://github.com/expo/expo/tree/main/packages/expo-notifications) that provides two implementations: - The default `expo-notifications` for Android and iOS platforms. - A Meta Quest-compatible implementation that uses th
23 lines (20 loc) • 788 B
text/typescript
import { ProxyNativeModule } from 'expo-modules-core';
import { NotificationCategory, NotificationAction } from './Notifications.types';
export interface NotificationCategoriesModule extends ProxyNativeModule {
getNotificationCategoriesAsync: () => Promise<NotificationCategory[]>;
setNotificationCategoryAsync: (
identifier: string,
actions: NotificationAction[],
options?: {
previewPlaceholder?: string;
intentIdentifiers?: string[];
categorySummaryFormat?: string;
customDismissAction?: boolean;
allowInCarPlay?: boolean;
showTitle?: boolean;
showSubtitle?: boolean;
allowAnnouncement?: boolean;
}
) => Promise<NotificationCategory>;
deleteNotificationCategoryAsync: (identifier: string) => Promise<boolean>;
}