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
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>;
}