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

16 lines (12 loc) 466 B
import { requireNativeModule } from 'expo-modules-core'; import { BadgeModule } from './BadgeModule.types'; const nativeModule = requireNativeModule('ExpoBadgeModule'); export default { ...nativeModule, // We overwrite setBadgeCountAsync to omit // an obsolete options argument when calling // the native function. setBadgeCountAsync: async (badgeCount, options) => { return await nativeModule.setBadgeCountAsync(badgeCount); }, } as BadgeModule;