Skip to content

Commit 24a76a0

Browse files
authored
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".
1 parent ffe1938 commit 24a76a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export interface PresentLocalNotificationDetails {
6161
}
6262

6363
export interface ScheduleLocalNotificationDetails {
64-
fireDate: Date;
64+
fireDate: string; // Use Date.toISOString() to convert to the expected format
6565
alertBody: string;
6666
alertAction: string;
6767
soundName?: string;

0 commit comments

Comments
 (0)