expo-notifications
Version:
Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.
11 lines (8 loc) • 367 B
text/typescript
import { NativeModule } from 'expo-modules-core';
export type PushTokenManagerModuleEvents = {
onDevicePushToken: (params: { devicePushToken: string }) => void;
};
export class PushTokenManagerModule extends NativeModule<PushTokenManagerModuleEvents> {
getDevicePushTokenAsync?: () => Promise<string>;
unregisterForNotificationsAsync?: () => Promise<void>;
}