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
...@@ -25,7 +25,7 @@ declare module "react-native-fcm" { ...@@ -25,7 +25,7 @@ declare module "react-native-fcm" {
const Local = "local_notification"; const Local = "local_notification";
} }
export interface Notification { export interface Notification {
collapse_key: string; collapse_key: string;
opened_from_tray: boolean; opened_from_tray: boolean;
from: string; from: string;
...@@ -34,9 +34,18 @@ declare module "react-native-fcm" { ...@@ -34,9 +34,18 @@ declare module "react-native-fcm" {
body: string; body: string;
icon: string; icon: string;
}; };
fcm: {
action?: string;
tag?: string;
icon?: string;
color?: string;
body: string;
title?: string;
};
local_notification?: boolean; local_notification?: boolean;
_notificationType: string; _notificationType: string;
finish(type?: string): void; finish(type?: string): void;
[key: string]: any;
} }
export interface LocalNotification { export interface LocalNotification {
...@@ -59,12 +68,12 @@ declare module "react-native-fcm" { ...@@ -59,12 +68,12 @@ declare module "react-native-fcm" {
auto_cancel?: boolean; auto_cancel?: boolean;
group?: string; group?: string;
picture?: string; picture?: string;
my_custom_data?: string;
ongoing?: boolean; ongoing?: boolean;
lights?: boolean; lights?: boolean;
[key: string]: any;
} }
export interface ScheduleLocalNotification extends LocalNotification{ export interface ScheduleLocalNotification extends LocalNotification {
id: string; id: string;
fire_date: number; fire_date: number;
repeat_interval?: "week" | "day" | "hour" 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