From 84874704766c0bc2dde88720b04b3ba4a695cf30 Mon Sep 17 00:00:00 2001 From: Ramanpreet Nara Date: Tue, 11 Jan 2022 00:23:24 -0800 Subject: [PATCH] Fix SVC for AndroidTextInput Summary: ## SVC != NVC Failure ``` LOG SVC AndroidTextInput Invalid LOG { "missing": { "validAttributes": { "borderBottomLeftRadius": true, "borderBottomColor": { "process": "[Function processColor]" }, "borderRightColor": { "process": "[Function processColor]" }, "borderLeftColor": { "process": "[Function processColor]" }, "borderTopRightRadius": true, "borderColor": { "process": "[Function processColor]" }, "borderBottomRightRadius": true, "borderRadius": true, "borderStyle": true, "borderTopColor": { "process": "[Function processColor]" }, "borderTopLeftRadius": true } }, "unexpected": { "validAttributes": { "autoCompleteType": true } }, "unequal": [] } ``` Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D33341773 fbshipit-source-id: a3c7f043d6b2ba0e2a4253739826e6f7f68e7ca5 --- .../AndroidTextInputNativeComponent.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js b/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js index 1d03d433e6f..26982732c96 100644 --- a/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +++ b/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js @@ -635,7 +635,11 @@ let AndroidTextInputNativeComponent = NativeComponentRegistry.get( }, }, }, - directEventTypes: {}, + directEventTypes: { + topScroll: { + registrationName: 'onScroll', + }, + }, validAttributes: { maxFontSizeMultiplier: true, adjustsFontSizeToFit: true, @@ -666,7 +670,6 @@ let AndroidTextInputNativeComponent = NativeComponentRegistry.get( keyboardType: true, multiline: true, color: {process: require('../../StyleSheet/processColor')}, - autoCompleteType: true, autoComplete: true, numberOfLines: true, letterSpacing: true, @@ -694,6 +697,17 @@ let AndroidTextInputNativeComponent = NativeComponentRegistry.get( inlineImageLeft: true, editable: true, fontVariant: true, + borderBottomRightRadius: true, + borderBottomColor: {process: require('../../StyleSheet/processColor')}, + borderRadius: true, + borderRightColor: {process: require('../../StyleSheet/processColor')}, + borderColor: {process: require('../../StyleSheet/processColor')}, + borderTopRightRadius: true, + borderStyle: true, + borderBottomLeftRadius: true, + borderLeftColor: {process: require('../../StyleSheet/processColor')}, + borderTopLeftRadius: true, + borderTopColor: {process: require('../../StyleSheet/processColor')}, }, }), );