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