UNPKG

expo-notifications

Version:

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

10 lines 476 B
import { UnavailabilityError } from 'expo-modules-core'; import PushTokenManager from './PushTokenManager'; // @docsMissing export default async function unregisterForNotificationsAsync() { if (!PushTokenManager.unregisterForNotificationsAsync) { throw new UnavailabilityError('ExpoNotifications', 'unregisterForNotificationsAsync'); } return PushTokenManager.unregisterForNotificationsAsync(); } //# sourceMappingURL=unregisterForNotificationsAsync.js.map