Fix search history
This commit is contained in:
@@ -609,8 +609,13 @@ export function SearchScreen(
|
||||
)
|
||||
|
||||
const handleHistoryItemClick = (item: string) => {
|
||||
if (isWeb) {
|
||||
navigation.push('Search', {q: item})
|
||||
} else {
|
||||
setShowAutocomplete(false)
|
||||
navigation.setParams({q: item})
|
||||
}
|
||||
}
|
||||
|
||||
const handleRemoveHistoryItem = (itemToRemove: string) => {
|
||||
const updatedHistory = searchHistory.filter(item => item !== itemToRemove)
|
||||
|
||||
Reference in New Issue
Block a user