Skip to content

Commit

Permalink
Remove unused handler on PushNotificationIOS.removeEventListener (#43037
Browse files Browse the repository at this point in the history
)

Summary:
Pull Request resolved: #43037

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

Reviewed By: philIip

Differential Revision: D53781102

fbshipit-source-id: a3372d0ccb4addf9983c143fb1a3e206f6aae103
  • Loading branch information
Ingrid Wang authored and facebook-github-bot committed Feb 16, 2024
1 parent 1bd4576 commit fdf4ec3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fdf4ec3

Please sign in to comment.