diff --git a/index.d.ts b/index.d.ts index bf7f44320929c211e096ad07e67c007a6cba99fa..47f603d46777514808718dd43628cebb18d27261 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 {