Skip to content

Commit 2222350

Browse files
committed
update search router
1 parent 8dfc80e commit 2222350

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/components/Search/SearchRouter/SearchRouter.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,16 @@ function SearchRouter({onRouterClose, shouldHideInputCaret, isSearchRouterDispla
429429
const modalWidth = shouldUseNarrowLayout ? styles.w100 : {width: variables.searchRouterPopoverWidth};
430430
const isRecentSearchesDataLoaded = !isLoadingOnyxValue(recentSearchesMetadata);
431431

432-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
432+
const dismissKeyboard = () => {
433+
Keyboard.dismiss();
434+
};
435+
433436
const tap = Gesture.Tap().onFinalize(() => {
434437
'worklet';
435438

436-
runOnJS(() => {
437-
Keyboard.dismiss();
438-
})();
439+
runOnJS(dismissKeyboard)();
439440
});
441+
440442
return (
441443
<GestureDetector gesture={tap}>
442444
<View

0 commit comments

Comments
 (0)