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
20 lines (16 loc) • 566 B
text/typescript
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;