UNPKG

@elemental-design/expo-notifications

Version:
14 lines (11 loc) 446 B
import { NativeModulesProxy } from '@unimodules/core'; import { BadgeModule } from './BadgeModule.types'; export default { ...NativeModulesProxy.ExpoBadgeModule, // We overwrite setBadgeCountAsync to omit // an obsolete options argument when calling // the native function. setBadgeCountAsync: async (badgeCount, options) => { return await NativeModulesProxy.ExpoBadgeModule.setBadgeCountAsync(badgeCount); }, } as BadgeModule;