expo-notifications
Version:
Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.
11 lines (8 loc) • 437 B
text/typescript
import type { Options as BadginOptions } from 'badgin';
import type { ProxyNativeModule } from 'expo-modules-core';
export type WebSetBadgeCountOptions = BadginOptions;
type SetBadgeCountOptions = WebSetBadgeCountOptions | undefined;
export interface BadgeModule extends ProxyNativeModule {
getBadgeCountAsync?: () => Promise<number>;
setBadgeCountAsync?: (badgeCount: number, options: SetBadgeCountOptions) => Promise<boolean>;
}