From 8880c09076e4727768ace26a74766cbe6f64021c Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Tue, 9 Nov 2021 12:55:58 -0800 Subject: [PATCH] RN: Rename `Keyboard.remove{Event =>}Listener` Summary: Renames `Keyboard.removeEventListener` to `Keyboard.removeListener`. When I implemented the compatibility layer in {D26589441 (https://github.com/facebook/react-native/commit/035718ba97bb44c68f2a4ccdd95e537e3d28690c)}, I accidentally used the wrong name. Since `Keyboard.removeEventListener` was always deprecated, this removes it completely. Changelog: [General][Changed] - Rename deprecated `Keyboard.removeEventListener` to `Keyboard.removeListener`. Reviewed By: lunaleaps Differential Revision: D32282743 fbshipit-source-id: 309382af3269f85f781d38367d115a2ce3690efb --- Libraries/Components/Keyboard/Keyboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/Keyboard/Keyboard.js b/Libraries/Components/Keyboard/Keyboard.js index c357aeb376731c..dc2309eba37f25 100644 --- a/Libraries/Components/Keyboard/Keyboard.js +++ b/Libraries/Components/Keyboard/Keyboard.js @@ -142,9 +142,9 @@ class Keyboard { } /** - * @deprecated Use `remove` on the EventSubscription from `addEventListener`. + * @deprecated Use `remove` on the EventSubscription from `addListener`. */ - removeEventListener>( + removeListener>( eventType: K, listener: (...$ElementType) => mixed, ): void {