The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): composer buttons stay visible with animations removed (#19239)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Quy Ngoc Nguyen committed
Oct 20, 2026 at 11:08 UTC
651fe94dc94553f6fd3c19a73d2b3377de6c7f15
1 file changed
+8
-2
apps/mobile/src/features/voice-input/ComposerDictationControl.tsx
+8
-2
@@ -13,6 +13,7 @@ import Animated, {
13
LinearTransition,
14
ReduceMotion,
15
useAnimatedStyle,
16
+ useReducedMotion,
17
useSharedValue,
18
withTiming,
19
type EntryExitAnimationFunction,
@@ -135,14 +136,19 @@ export function ComposerDictationToolbar(props: {
136
readonly showsDictation: boolean;
137
readonly visible?: boolean;
138
}) {
139
+ // Android can drop the reduced-motion flip's final frame, leaving the toolbar invisible.
140
+ const reducedMotion = useReducedMotion();
141
+ const entering = props.showsDictation ? DICTATION_TOOLBAR_ENTERING : DRAFT_TOOLBAR_ENTERING;
142
+ const exiting = props.showsDictation ? DICTATION_TOOLBAR_EXITING : DRAFT_TOOLBAR_EXITING;
143
+
144
return (
145
<View className="relative h-[44px] overflow-hidden">
146
{props.visible !== false ? (
147
<Animated.View
148
key={props.showsDictation ? "dictation" : "draft"}
149
className="absolute inset-0"
144
- entering={props.showsDictation ? DICTATION_TOOLBAR_ENTERING : DRAFT_TOOLBAR_ENTERING}
145
- exiting={props.showsDictation ? DICTATION_TOOLBAR_EXITING : DRAFT_TOOLBAR_EXITING}
150
+ entering={reducedMotion ? undefined : entering}
151
+ exiting={reducedMotion ? undefined : exiting}
152
style={{ backfaceVisibility: "hidden" }}
153
>
154
{props.children}