From 24a76a04f0d267963061ffe58e8348625ad9867d Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 9 Feb 2020 16:27:52 +0000 Subject: [PATCH] Fix defintion of fireDate The original PushNotificationIOS from react-native package was taking a `Date` object for `fireDate`. Using such an object with this new package however throws an exception "NSmutableDictionary cannot be converted to date". --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 0075141c9..bfd524fd4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -61,7 +61,7 @@ export interface PresentLocalNotificationDetails { } export interface ScheduleLocalNotificationDetails { - fireDate: Date; + fireDate: string; // Use Date.toISOString() to convert to the expected format alertBody: string; alertAction: string; soundName?: string;