From 919a7af7b69061920b52322d438eb12fdea16456 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 22:26:10 +0000 Subject: [PATCH] Remove Keyboard.dismiss() calls from composer sheet buttons The sheet presentation handles keyboard dismissal, so these manual calls are unnecessary. https://claude.ai/code/session_011cNDhEb2cDgg5QbVuzEyH1 --- src/view/com/composer/labels/LabelsBtn.tsx | 7 ++----- src/view/com/composer/threadgate/ThreadgateBtn.tsx | 6 ------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/view/com/composer/labels/LabelsBtn.tsx b/src/view/com/composer/labels/LabelsBtn.tsx index b44636e2ef..1bc5153668 100644 --- a/src/view/com/composer/labels/LabelsBtn.tsx +++ b/src/view/com/composer/labels/LabelsBtn.tsx @@ -1,5 +1,5 @@ import {useState} from 'react' -import {findNodeHandle, Keyboard, View} from 'react-native' +import {findNodeHandle, View} from 'react-native' import {msg} from '@lingui/core/macro' import {useLingui} from '@lingui/react' import {Trans} from '@lingui/react/macro' @@ -64,10 +64,7 @@ export function LabelsBtn({ color="secondary" size="small" testID="labelsBtn" - onPress={() => { - Keyboard.dismiss() - control.open() - }} + onPress={() => control.open()} label={_(msg`Content warnings`)} accessibilityHint={_( msg`Opens a dialog to add a content warning to your post`, diff --git a/src/view/com/composer/threadgate/ThreadgateBtn.tsx b/src/view/com/composer/threadgate/ThreadgateBtn.tsx index cdf6a3b785..ce87074830 100644 --- a/src/view/com/composer/threadgate/ThreadgateBtn.tsx +++ b/src/view/com/composer/threadgate/ThreadgateBtn.tsx @@ -1,7 +1,6 @@ import {useEffect, useMemo, useState} from 'react' import { findNodeHandle, - Keyboard, type StyleProp, type View, type ViewStyle, @@ -32,7 +31,6 @@ import {Group3_Stroke2_Corner0_Rounded as GroupIcon} from '#/components/icons/Gr import * as Tooltip from '#/components/Tooltip' import {Text} from '#/components/Typography' import {useAnalytics} from '#/analytics' -import {IS_NATIVE} from '#/env' import {useThreadgateNudged} from '#/storage/hooks/threadgate-nudged' export function ThreadgateBtn({ @@ -86,10 +84,6 @@ export function ThreadgateBtn({ nudged: tooltipWasShown, }) - if (IS_NATIVE && Keyboard.isVisible()) { - Keyboard.dismiss() - } - setShowTooltip(false) setThreadgateNudged(true)