Skip to content

Commit 8880c09

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: Rename Keyboard.remove{Event =>}Listener
Summary: Renames `Keyboard.removeEventListener` to `Keyboard.removeListener`. When I implemented the compatibility layer in {D26589441 (035718b)}, 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
1 parent 9b33c31 commit 8880c09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/Components/Keyboard/Keyboard.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ class Keyboard {
142142
}
143143

144144
/**
145-
* @deprecated Use `remove` on the EventSubscription from `addEventListener`.
145+
* @deprecated Use `remove` on the EventSubscription from `addListener`.
146146
*/
147-
removeEventListener<K: $Keys<KeyboardEventDefinitions>>(
147+
removeListener<K: $Keys<KeyboardEventDefinitions>>(
148148
eventType: K,
149149
listener: (...$ElementType<KeyboardEventDefinitions, K>) => mixed,
150150
): void {

0 commit comments

Comments
 (0)