expo-notifications
Version:
Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.
11 lines (8 loc) • 427 B
text/typescript
import { Options as BadginOptions } from 'badgin';
import { 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>;
}