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) 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); }