diff --git a/Libraries/PushNotificationIOS/PushNotificationIOS.js b/Libraries/PushNotificationIOS/PushNotificationIOS.js index 8b738b6e6..fc09fef39 100644 --- a/Libraries/PushNotificationIOS/PushNotificationIOS.js +++ b/Libraries/PushNotificationIOS/PushNotificationIOS.js @@ -201,7 +201,7 @@ class PushNotificationIOS { * - `userInfo` : An optional object containing additional notification data. * - `thread-id` : The thread identifier of this notification, if has one. */ - static getDeliveredNotifications(callback: (notifications: [Object]) => void): void { + static getDeliveredNotifications(callback: (notifications: Array) => void): void { RCTPushNotificationManager.getDeliveredNotifications(callback); } @@ -210,7 +210,7 @@ class PushNotificationIOS { * * @param identifiers Array of notification identifiers */ - static removeDeliveredNotifications(identifiers: [string]): void { + static removeDeliveredNotifications(identifiers: Array): void { RCTPushNotificationManager.removeDeliveredNotifications(identifiers); }