From 32e53168178992937770dd8d3e9ecc366c8045de Mon Sep 17 00:00:00 2001 From: Sudheer Date: Wed, 29 Aug 2018 15:44:20 +0530 Subject: [PATCH] MM-11684 Fix grey highlight in the text fields in user profile (#2034) * Fix jumpto search highlight * Change background style to be on view and rest of input styles to input --- app/components/search_bar/search_box.js | 81 ++++++++++--------- app/screens/edit_profile/edit_profile_item.js | 26 +++--- 2 files changed, 55 insertions(+), 52 deletions(-) diff --git a/app/components/search_bar/search_box.js b/app/components/search_bar/search_box.js index 07ab94aac..f9dee6d91 100644 --- a/app/components/search_bar/search_box.js +++ b/app/components/search_bar/search_box.js @@ -330,6 +330,7 @@ export default class Search extends Component { }; render() { + const {backgroundColor, ...restOfInputPropStyles} = this.props.inputStyle; return ( - + + ]} + autoFocus={this.props.autoFocus} + editable={this.props.editable} + value={this.props.value} + onChangeText={this.onChangeText} + placeholder={this.placeholder} + placeholderTextColor={this.props.placeholderTextColor} + selectionColor={this.props.selectionColor} + onSubmitEditing={this.onSearch} + onSelectionChange={this.onSelectionChange} + autoCorrect={false} + blurOnSubmit={this.props.blurOnSubmit} + returnKeyType={this.props.returnKeyType || 'search'} + keyboardType={this.props.keyboardType || 'default'} + autoCapitalize={this.props.autoCapitalize} + onBlur={this.onBlur} + onFocus={this.onFocus} + underlineColorAndroid='transparent' + enablesReturnKeyAutomatically={true} + /> + {((this.props.iconSearch) ? - + + + {disabled && {helpText}