UNPKG

expo-quest-notifications

Version:

A fork of [`expo-notifications`](https://github.com/expo/expo/tree/main/packages/expo-notifications) that provides two implementations: - The default `expo-notifications` for Android and iOS platforms. - A Meta Quest-compatible implementation that uses th

18 lines 1 kB
import { UnavailabilityError } from 'expo-modules-core'; import NotificationCategoriesModule from './NotificationCategoriesModule'; /** * Deletes the category associated with the provided identifier. * @param identifier Identifier initially provided to `setNotificationCategoryAsync` when creating the category. * @return A Promise which resolves to `true` if the category was successfully deleted, or `false` if it was not. * An example of when this method would return `false` is if you try to delete a category that doesn't exist. * @platform android * @platform ios * @header categories */ export default async function deleteNotificationCategoryAsync(identifier) { if (!NotificationCategoriesModule.deleteNotificationCategoryAsync) { throw new UnavailabilityError('Notifications', 'deleteNotificationCategoryAsync'); } return await NotificationCategoriesModule.deleteNotificationCategoryAsync(identifier); } //# sourceMappingURL=deleteNotificationCategoryAsync.js.map