From d5bc0a7bff36f6ed4a7b4a71b9e4bcef6bccdf01 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 9 Jul 2020 22:18:51 -0700 Subject: [PATCH] Fix inconsistency on AndroidTextInput view configs Summary: BubblingEventTypes are inconsistent between AndroidTextInputViewConfig.js and ReactTextInputManager.java, this diff fixes this inconsistency changelog: [internal] Reviewed By: JoshuaGross Differential Revision: D22470096 fbshipit-source-id: 3940dcc0ae67a42ac070c06ec2d54bc365eab6b7 --- .../TextInput/AndroidTextInputViewConfig.js | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Libraries/Components/TextInput/AndroidTextInputViewConfig.js b/Libraries/Components/TextInput/AndroidTextInputViewConfig.js index c4a43a77339..0853b60a75d 100644 --- a/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +++ b/Libraries/Components/TextInput/AndroidTextInputViewConfig.js @@ -16,6 +16,36 @@ import type {ReactNativeBaseComponentViewConfig} from '../../Renderer/shims/Reac const AndroidTextInputViewConfig = { uiViewClassName: 'AndroidTextInput', bubblingEventTypes: { + topBlur: { + phasedRegistrationNames: { + bubbled: 'onBlur', + captured: 'onBlurCapture', + }, + }, + topEndEditing: { + phasedRegistrationNames: { + bubbled: 'onEndEditing', + captured: 'onEndEditingCapture', + }, + }, + topFocus: { + phasedRegistrationNames: { + bubbled: 'onFocus', + captured: 'onFocusCapture', + }, + }, + topKeyPress: { + phasedRegistrationNames: { + bubbled: 'onKeyPress', + captured: 'onKeyPressCapture', + }, + }, + topSubmitEditing: { + phasedRegistrationNames: { + bubbled: 'onSubmitEditing', + captured: 'onSubmitEditingCapture', + }, + }, topTextInput: { phasedRegistrationNames: { bubbled: 'onTextInput',