UNPKG

expo-notifications

Version:

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

7 lines (6 loc) 183 B
export function hasValidTriggerObject(trigger: unknown) { return ( trigger === null || (typeof trigger === 'object' && ('type' in trigger || 'channelId' in trigger)) ); }