Add visibility and importance to options (#37346)

This commit is contained in:
Andrew Li 2019-08-05 15:20:32 -05:00 committed by Nathan Shively-Sanders
parent 8e8902b6da
commit 39c9df962a

View File

@ -2,6 +2,7 @@
// Project: https://github.com/zo0r/react-native-push-notification#readme
// Definitions by: Paito Anderson <https://github.com/PaitoAnderson>
// Tom Sawkins <https://github.com/tomSawkins>
// Andrew Li <https://github.com/Li357>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@ -33,6 +34,8 @@ export interface PushNotificationOptions {
export type PriorityType = "max" | "high" | "low" | "min" | "default";
export type RepeatType = "week" | "day" | "hour" | "minute" | "time";
export type VisibilityType = "private" | "public" | "secret";
export type ImportanceType = "default" | "max" | "high" | "low" | "min" | "none" | "unspecified";
export class PushNotificationObject {
/* Android only properties */
@ -50,6 +53,8 @@ export class PushNotificationObject {
group?: string;
ongoing?: boolean;
priority?: PriorityType;
visibility?: VisibilityType;
importance?: ImportanceType;
/* iOS only properties */
alertAction?: any;