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
12 lines • 459 B
JavaScript
import { requireNativeModule } from 'expo-modules-core';
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);
},
};
//# sourceMappingURL=BadgeModule.native.js.map