From 9d2b982eaa6fb6a8bd71b693a9c21febcc48ccad Mon Sep 17 00:00:00 2001 From: Luminos MacBook Pro Date: Thu, 10 Jan 2019 11:29:17 +0200 Subject: [PATCH] Add priority to react-native-push-nottification --- types/react-native-push-notification/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/react-native-push-notification/index.d.ts b/types/react-native-push-notification/index.d.ts index 4f58cd7385..825d5d11e6 100644 --- a/types/react-native-push-notification/index.d.ts +++ b/types/react-native-push-notification/index.d.ts @@ -14,7 +14,7 @@ export interface PushNotificationPermissions { export interface PushNotification { foreground: boolean; userInteraction: boolean; - message: string|object; + message: string | object; data: object; badge: number; alert: object; @@ -23,7 +23,7 @@ export interface PushNotification { } export interface PushNotificationOptions { - onRegister?: (token: { os: string, token: string }) => void; + onRegister?: (token: { os: string; token: string }) => void; onNotification?: (notification: PushNotification) => void; senderID?: string; permissions?: PushNotificationPermissions; @@ -31,6 +31,7 @@ export interface PushNotificationOptions { requestPermissions?: boolean; } +export type PriorityType = 'max' | 'high' | 'low' | 'min' | 'default'; export type RepeatType = 'week' | 'day' | 'hour' | 'minute' | 'time'; export class PushNotificationObject { @@ -48,6 +49,7 @@ export class PushNotificationObject { tag?: string; group?: string; ongoing?: boolean; + priority?: PriorityType; /* iOS only properties */ alertAction?: any;