mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
1bd45768e3
commit
fdf4ec3297
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user