UNPKG

@pachun/use-expo-push-notifications

Version:

Simpler (and more testable) expo-notifications event handling

7 lines (6 loc) 384 B
import * as Notifications from "expo-notifications"; declare const useExpoPushNotifications: ({ onNotificationReceived, onNotificationInteraction, }: { onNotificationReceived: (notification: Notifications.Notification) => void; onNotificationInteraction: (notificationResponse: Notifications.NotificationResponse) => void; }) => void; export default useExpoPushNotifications;