clear the search input when we clear q on native

This commit is contained in:
Hailey
2024-04-26 15:51:31 -07:00
parent 6e29cce90d
commit 393347387c
+2
View File
@@ -543,6 +543,7 @@ export function SearchScreen(
if (isWeb) {
navigation.replace('Search', {})
} else {
setSearchText('')
navigation.setParams({q: ''})
}
}
@@ -668,6 +669,7 @@ export function SearchScreen(
style={[pal.text, styles.headerSearchInput]}
keyboardAppearance={theme.colorScheme}
onFocus={() => setInputIsFocused(true)}
onBlur={() => setInputIsFocused(false)}
onChangeText={onChangeText}
onSubmitEditing={onSubmit}
autoFocus={false}