From 0c34add45adb20fb2a0fed3527a429f47f66eb75 Mon Sep 17 00:00:00 2001 From: Ryan <82715592+Ryan0204@users.noreply.github.com> Date: Sun, 4 May 2025 17:48:53 +0800 Subject: [PATCH] fix: update search functionality to set text in search bar on press (#669) --- app/(auth)/(tabs)/(search)/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/(auth)/(tabs)/(search)/index.tsx b/app/(auth)/(tabs)/(search)/index.tsx index 441ffb0f..e00af8b1 100644 --- a/app/(auth)/(tabs)/(search)/index.tsx +++ b/app/(auth)/(tabs)/(search)/index.tsx @@ -434,7 +434,10 @@ export default function search() { {exampleSearches.map((e) => ( setSearch(e)} + onPress={() => { + setSearch(e); + searchBarRef.current?.setText(e); + }} key={e} className='mb-2' >