From ea71b50a066013b47e906267fc027c6697ad27cd Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Mon, 25 Jul 2022 14:02:08 -1000 Subject: [PATCH] =?UTF-8?q?Revert=20"7470=20-=20added=20onLayout=20to=20te?= =?UTF-8?q?xtinput=20perent=20component=20&=20used=20dynamic=20he=E2=80=A6?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TextInput/BaseTextInput.js | 4 ---- src/styles/styles.js | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/TextInput/BaseTextInput.js b/src/components/TextInput/BaseTextInput.js index 2a79f6b0a055..a083af0f2e16 100644 --- a/src/components/TextInput/BaseTextInput.js +++ b/src/components/TextInput/BaseTextInput.js @@ -14,7 +14,6 @@ import * as Expensicons from '../Icon/Expensicons'; import Text from '../Text'; import * as styleConst from './styleConst'; import * as StyleUtils from '../../styles/StyleUtils'; -import variables from '../../styles/variables'; import getSecureEntryKeyboardType from '../../libs/getSecureEntryKeyboardType'; class BaseTextInput extends Component { @@ -31,7 +30,6 @@ class BaseTextInput extends Component { passwordHidden: props.secureTextEntry, textInputWidth: 0, prefixWidth: 0, - height: variables.componentSizeLarge, // Value should be kept in state for the autoGrow feature to work - https://github.com/Expensify/App/pull/8232#issuecomment-1077282006 value, @@ -214,7 +212,6 @@ class BaseTextInput extends Component { > this.setState({height: event.nativeEvent.layout.height})} style={[ textInputContainerStyles, @@ -267,7 +264,6 @@ class BaseTextInput extends Component { !hasLabel && styles.pv0, this.props.prefixCharacter && StyleUtils.getPaddingLeft(this.state.prefixWidth + styles.pl1.paddingLeft), this.props.secureTextEntry && styles.secureInput, - {height: this.state.height}, ]} multiline={this.props.multiline} maxLength={this.props.maxLength} diff --git a/src/styles/styles.js b/src/styles/styles.js index 443718683190..31efe3cb6be2 100644 --- a/src/styles/styles.js +++ b/src/styles/styles.js @@ -736,6 +736,7 @@ const styles = { paddingBottom: 8, paddingHorizontal: 11, borderWidth: 0, + borderRadius: variables.componentBorderRadiusNormal, }, textInputMultiline: {