Commit cbe81048 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Merge pull request #624 from danieloprado/master

Fix typings
parents 804aaa4d c1bb3be2
......@@ -34,9 +34,18 @@ declare module "react-native-fcm" {
body: string;
icon: string;
};
fcm: {
action?: string;
tag?: string;
icon?: string;
color?: string;
body: string;
title?: string;
};
local_notification?: boolean;
_notificationType: string;
finish(type?: string): void;
[key: string]: any;
}
export interface LocalNotification {
......@@ -59,12 +68,12 @@ declare module "react-native-fcm" {
auto_cancel?: boolean;
group?: string;
picture?: string;
my_custom_data?: string;
ongoing?: boolean;
lights?: boolean;
[key: string]: any;
}
export interface ScheduleLocalNotification extends LocalNotification{
export interface ScheduleLocalNotification extends LocalNotification {
id: string;
fire_date: number;
repeat_interval?: "week" | "day" | "hour"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment