UNPKG

@elemental-design/expo-notifications

Version:
12 lines (8 loc) 344 B
import { UnavailabilityError } from '@unimodules/core'; import BadgeModule from './BadgeModule'; export default async function getBadgeCountAsync(): Promise<number> { if (!BadgeModule.getBadgeCountAsync) { throw new UnavailabilityError('ExpoNotifications', 'getBadgeCountAsync'); } return await BadgeModule.getBadgeCountAsync(); }