Dismiss keyboard before opening mobile tab switcher sheet

This commit is contained in:
Mohamed Boudra
2026-03-21 20:47:42 +07:00
parent d41808efe1
commit 0af666e3ac
@@ -4,6 +4,7 @@ import { useIsFocused } from "@react-navigation/native";
import { import {
ActivityIndicator, ActivityIndicator,
BackHandler, BackHandler,
Keyboard,
Platform, Platform,
Pressable, Pressable,
Text, Text,
@@ -377,7 +378,10 @@ const MobileWorkspaceTabSwitcher = memo(function MobileWorkspaceTabSwitcher({
accessibilityRole="button" accessibilityRole="button"
accessibilityLabel={`Switch tabs (${tabs.length} open)`} accessibilityLabel={`Switch tabs (${tabs.length} open)`}
style={({ pressed }) => [styles.switcherTrigger, pressed && styles.switcherTriggerPressed]} style={({ pressed }) => [styles.switcherTrigger, pressed && styles.switcherTriggerPressed]}
onPress={() => setIsOpen(true)} onPress={() => {
Keyboard.dismiss();
setIsOpen(true);
}}
> >
<View style={styles.switcherTriggerLeft}> <View style={styles.switcherTriggerLeft}>
<MobileActiveTabTrigger <MobileActiveTabTrigger