File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ class EmojiPickerMenu extends Component {
98
98
start : 0 ,
99
99
end : 0 ,
100
100
} ,
101
+ isFocused : false ,
101
102
} ;
102
103
}
103
104
@@ -441,12 +442,14 @@ class EmojiPickerMenu extends Component {
441
442
placeholder = { this . props . translate ( 'common.search' ) }
442
443
placeholderTextColor = { themeColors . textSupporting }
443
444
onChangeText = { this . filterEmojis }
444
- style = { styles . textInput }
445
+ style = { [ styles . textInput , this . state . isFocused && styles . borderColorFocus ] }
445
446
defaultValue = ""
446
447
ref = { el => this . searchInput = el }
447
448
autoFocus
448
449
selectTextOnFocus = { this . state . selectTextOnFocus }
449
450
onSelectionChange = { this . onSelectionChange }
451
+ onFocus = { ( ) => this . setState ( { isFocused : true } ) }
452
+ onBlur = { ( ) => this . setState ( { isFocused : false } ) }
450
453
/>
451
454
</ View >
452
455
) }
You can’t perform that action at this time.
0 commit comments