UNPKG

expo-notifications

Version:

Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.

12 lines (9 loc) 424 B
import { UnavailabilityError } from 'expo-modules-core'; import PushTokenManager from './PushTokenManager'; // @docsMissing export default async function unregisterForNotificationsAsync(): Promise<void> { if (!PushTokenManager.unregisterForNotificationsAsync) { throw new UnavailabilityError('ExpoNotifications', 'unregisterForNotificationsAsync'); } return PushTokenManager.unregisterForNotificationsAsync(); }