Skip to content

Commit 3b020ab

Browse files
fix(mobile): Android follow-up menu shows in full with the keyboard open
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 47f2c8d commit 3b020ab

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎apps/mobile/src/components/ui/AndroidAnchoredMenu.tsx‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { use, useRef, useState } from "react";
44
import type { StyleProp, ViewInstance, ViewStyle } from "react-native";
55
import { Pressable, ScrollView, View } from "react-native";
66
import { useKeyboardState } from "react-native-keyboard-controller";
7-
import Animated, { FadeIn } from "react-native-reanimated";
87

98
import { useHardwareBack } from "../../lib/backHandler";
109
import { deriveMenuHorizontalPlacement } from "../../lib/menu-placement";
@@ -181,8 +180,8 @@ export function AndroidAnchoredMenu(props: AndroidAnchoredMenuProps) {
181180
onClose={close}
182181
/>
183182
) : (
184-
<Animated.View
185-
entering={FadeIn.duration(120)}
183+
<View
184+
// No entering animation: it freezes this frame before the Compose host reports its size.
186185
className="absolute overflow-hidden bg-card-alt shadow-md"
187186
style={{
188187
left,
@@ -215,7 +214,7 @@ export function AndroidAnchoredMenu(props: AndroidAnchoredMenuProps) {
215214
onClose={close}
216215
/>
217216
</ScrollView>
218-
</Animated.View>
217+
</View>
219218
)}
220219
</View>
221220
</OverlayPortal>

0 commit comments

Comments
 (0)