UNPKG

@elemental-design/expo-notifications

Version:
12 lines (8 loc) 472 B
import { UnavailabilityError } from '@unimodules/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); }