Remove unused handler on PushNotificationIOS.removeEventListener (#43037)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/43037

Changelog:
[iOS][Breaking] Removing unused `handler` param on  PushNotificationIOS.removeEventListener

Reviewed By: philIip

Differential Revision: D53781102

fbshipit-source-id: a3372d0ccb4addf9983c143fb1a3e206f6aae103
This commit is contained in:
Ingrid Wang
2024-02-16 15:22:49 -08:00
committed by Facebook GitHub Bot
parent 1bd45768e3
commit fdf4ec3297
2 changed files with 2 additions and 8 deletions
@@ -308,10 +308,7 @@ class PushNotificationIOS {
*
* See https://reactnative.dev/docs/pushnotificationios#removeeventlistener
*/
static removeEventListener(
type: PushNotificationEventName,
handler: Function,
): void {
static removeEventListener(type: PushNotificationEventName): void {
invariant(
type === 'notification' ||
type === 'register' ||
@@ -6372,10 +6372,7 @@ declare class PushNotificationIOS {
type: PushNotificationEventName,
handler: Function
): void;
static removeEventListener(
type: PushNotificationEventName,
handler: Function
): void;
static removeEventListener(type: PushNotificationEventName): void;
static requestPermissions(permissions?: {
alert?: boolean,
badge?: boolean,