1import { UnavailabilityError } from 'expo-modules-core'; 2import NotificationCategoriesModule from './NotificationCategoriesModule.native'; 3/** 4 * Fetches information about all known notification categories. 5 * @return A Promise which resolves to an array of `NotificationCategory`s. On platforms that do not support notification channels, 6 * it will always resolve to an empty array. 7 * @platform android 8 * @platform ios 9 * @header categories 10 */ 11export default async function getNotificationCategoriesAsync() { 12 if (!NotificationCategoriesModule.getNotificationCategoriesAsync) { 13 throw new UnavailabilityError('Notifications', 'getNotificationCategoriesAsync'); 14 } 15 return await NotificationCategoriesModule.getNotificationCategoriesAsync(); 16} 17//# sourceMappingURL=getNotificationCategoriesAsync.js.map