diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/search/SearchScreen.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/screens/search/SearchScreen.tsx b/src/screens/search/SearchScreen.tsx index 39feee3b..835a5622 100644 --- a/src/screens/search/SearchScreen.tsx +++ b/src/screens/search/SearchScreen.tsx @@ -112,14 +112,13 @@ const SearchScreen: React.FC = () => { setSearching(true); }; const handleCancel = () => { - setQuery(''); Keyboard.dismiss(); const topOutConfig = { duration: 180, toValue: -SCREEN_HEIGHT, easing: Easing.inOut(Easing.ease), }; - timing(top, topOutConfig).start(); + timing(top, topOutConfig).start(() => setQuery('')); setSearching(false); }; |