clear the search input when we clear q on native
This commit is contained in:
@@ -543,6 +543,7 @@ export function SearchScreen(
|
|||||||
if (isWeb) {
|
if (isWeb) {
|
||||||
navigation.replace('Search', {})
|
navigation.replace('Search', {})
|
||||||
} else {
|
} else {
|
||||||
|
setSearchText('')
|
||||||
navigation.setParams({q: ''})
|
navigation.setParams({q: ''})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -668,6 +669,7 @@ export function SearchScreen(
|
|||||||
style={[pal.text, styles.headerSearchInput]}
|
style={[pal.text, styles.headerSearchInput]}
|
||||||
keyboardAppearance={theme.colorScheme}
|
keyboardAppearance={theme.colorScheme}
|
||||||
onFocus={() => setInputIsFocused(true)}
|
onFocus={() => setInputIsFocused(true)}
|
||||||
|
onBlur={() => setInputIsFocused(false)}
|
||||||
onChangeText={onChangeText}
|
onChangeText={onChangeText}
|
||||||
onSubmitEditing={onSubmit}
|
onSubmitEditing={onSubmit}
|
||||||
autoFocus={false}
|
autoFocus={false}
|
||||||
|
|||||||
Reference in New Issue
Block a user