From 8a50213387adb0e87788f0b7990515bf04ede964 Mon Sep 17 00:00:00 2001 From: RafaelFS Date: Wed, 16 Aug 2017 09:26:11 -0300 Subject: [PATCH] Adds some missing parameters on types --- index.d.ts | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index bf7f443..47f603d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -34,24 +34,40 @@ declare module "react-native-fcm" { body: string; icon: string; }; + local_notification?: boolean; _notificationType: string; finish(type?: string): void; } export interface LocalNotification { + id?: string; title?: string; body: string; icon?: string; vibrate?: number; sound?: string; big_text?: string; + sub_text?: string; + color?: string; large_icon?: string; - priority?: string + priority?: string; + show_in_foreground?: boolean; + click_action?: string; + badge?: number; + number?: number; + ticker?: string; + auto_cancel?: boolean; + tag?: string; + group?: string; + picture?: string; + my_custom_data?: string; + lights?: boolean } export interface ScheduleLocalNotification extends LocalNotification{ id: string; - fire_date: number + fire_date: number; + repeat_interval?: "week" | "day" | "hour" } export interface Subscription { -- 2.26.2