Skip to content

Commit

Permalink
clear the search input when we clear q on native
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Apr 26, 2024
1 parent 6e29cce commit 3933473
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/view/screens/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ export function SearchScreen(
if (isWeb) {
navigation.replace('Search', {})
} else {
setSearchText('')
navigation.setParams({q: ''})
}
}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 3933473

Please sign in to comment.