1import { NativeModulesProxy } from 'expo-modules-core';
2
3import { BadgeModule } from './BadgeModule.types';
4
5export default {
6  ...NativeModulesProxy.ExpoBadgeModule,
7  // We overwrite setBadgeCountAsync to omit
8  // an obsolete options argument when calling
9  // the native function.
10  setBadgeCountAsync: async (badgeCount, options) => {
11    return await NativeModulesProxy.ExpoBadgeModule.setBadgeCountAsync(badgeCount);
12  },
13} as BadgeModule;
14