expo-notifications
Version:
Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.
12 lines (8 loc) • 465 B
text/typescript
import { UnavailabilityError } from 'expo-modules-core';
import NotificationChannelManager from './NotificationChannelManager';
export async function deleteNotificationChannelAsync(channelId: string): Promise<void> {
if (!NotificationChannelManager.deleteNotificationChannelAsync) {
throw new UnavailabilityError('Notifications', 'deleteNotificationChannelAsync');
}
return await NotificationChannelManager.deleteNotificationChannelAsync(channelId);
}