mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
@@ -141,9 +141,9 @@ class Keyboard {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use `remove` on the EventSubscription from `addEventListener`.
|
||||
* @deprecated Use `remove` on the EventSubscription from `addListener`.
|
||||
*/
|
||||
removeEventListener<K: $Keys<KeyboardEventDefinitions>>(
|
||||
removeListener<K: $Keys<KeyboardEventDefinitions>>(
|
||||
eventType: K,
|
||||
listener: (...$ElementType<KeyboardEventDefinitions, K>) => mixed,
|
||||
): void {
|
||||
|
||||
Reference in New Issue
Block a user