Fixes to dark mode (#238)
This commit is contained in:
parent
d054b1baf8
commit
df712a89d3
6 changed files with 29 additions and 18 deletions
|
@ -81,6 +81,7 @@ export const Search = observer(({navIdx, visible, params}: ScreenParams) => {
|
|||
const onPressCancelSearch = () => {
|
||||
setQuery('')
|
||||
autocompleteView.setActive(false)
|
||||
textInput.current?.blur()
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -127,10 +128,10 @@ export const Search = observer(({navIdx, visible, params}: ScreenParams) => {
|
|||
onChangeText={onChangeQuery}
|
||||
/>
|
||||
</View>
|
||||
{query ? (
|
||||
{query || isInputFocused ? (
|
||||
<View style={styles.headerCancelBtn}>
|
||||
<TouchableOpacity onPress={onPressCancelSearch}>
|
||||
<Text>Cancel</Text>
|
||||
<Text style={pal.text}>Cancel</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
) : undefined}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue