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: {