Fix search history

This commit is contained in:
Dan Abramov
2024-04-27 01:06:13 +01:00
parent 30eadaab5f
commit 36e50b786c
+6 -1
View File
@@ -609,7 +609,12 @@ export function SearchScreen(
)
const handleHistoryItemClick = (item: string) => {
navigation.setParams({q: item})
if (isWeb) {
navigation.push('Search', {q: item})
} else {
setShowAutocomplete(false)
navigation.setParams({q: item})
}
}
const handleRemoveHistoryItem = (itemToRemove: string) => {