UNPKG

expo-notifications

Version:

Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.

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