UNPKG

expo-notifications

Version:

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

9 lines 495 B
import { UnavailabilityError } from 'expo-modules-core'; import NotificationChannelManager from './NotificationChannelManager'; export async function getNotificationChannelsAsync() { if (!NotificationChannelManager.getNotificationChannelsAsync) { throw new UnavailabilityError('Notifications', 'getNotificationChannelsAsync'); } return (await NotificationChannelManager.getNotificationChannelsAsync()) ?? []; } //# sourceMappingURL=getNotificationChannelsAsync.android.js.map