UNPKG

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

14 lines (11 loc) 588 B
import { UnavailabilityError } from 'expo-modules-core'; import NotificationChannelGroupManager from './NotificationChannelGroupManager'; import { NotificationChannelGroup } from './NotificationChannelGroupManager.types'; export default async function getNotificationChannelGroupsAsync(): Promise< NotificationChannelGroup[] > { if (!NotificationChannelGroupManager.getNotificationChannelGroupsAsync) { throw new UnavailabilityError('Notifications', 'getNotificationChannelGroupsAsync'); } return await NotificationChannelGroupManager.getNotificationChannelGroupsAsync(); }