UNPKG

expo-notifications

Version:

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

20 lines (16 loc) 566 B
import { UnavailabilityError } from 'expo-modules-core'; import { NotificationCategoriesModule } from './NotificationCategoriesModule.types'; const notificationCategoriesModule: NotificationCategoriesModule = { async getNotificationCategoriesAsync() { return []; }, async setNotificationCategoryAsync() { throw new UnavailabilityError('Notifications', 'setNotificationCategoryAsync'); }, async deleteNotificationCategoryAsync() { return false; }, addListener() {}, removeListeners() {}, }; export default notificationCategoriesModule;