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

12 lines (8 loc) 473 B
import { UnavailabilityError } from 'expo-modules-core'; import NotificationChannelManager from './NotificationChannelManager'; export default async function deleteNotificationChannelAsync(channelId: string): Promise<void> { if (!NotificationChannelManager.deleteNotificationChannelAsync) { throw new UnavailabilityError('Notifications', 'deleteNotificationChannelAsync'); } return await NotificationChannelManager.deleteNotificationChannelAsync(channelId); }