import { Platform } from 'react-native' ; export * from './id' ; export * from './validate' ; export function isError ( value ) { if ( Object . prototype . toString . call ( value ) === '[object Error]' ) { return true ; } return value instanceof Error ; } export function objectHasProperty < T > ( target , property ) { return Object . hasOwnProperty . call ( target , property ) ; } export const isIOS = Platform . OS === 'ios' ; export const isAndroid = Platform . OS === 'android' ; export function noop ( ) { } export const kReactNativeNotifeeForegroundServiceHeadlessTask = 'app.notifee.foreground-service-headless-task' ; export const kReactNativeNotifeeNotificationEvent = 'app.notifee.notification-event' ; export const kReactNativeNotifeeNotificationBackgroundEvent = 'app.notifee.notification-event-background' ; export enum NotificationType { ALL = 0 , DISPLAYED = 1 , TRIGGER = 2 }