Skip to content
TypeScript

fix(mobile): Android follow-up menu shows in full with the keyboard open (#29263)

Julius Marmingec756ebaabc0c
diff --git a/apps/mobile/src/components/ui/AndroidAnchoredMenu.tsx b/apps/mobile/src/components/ui/AndroidAnchoredMenu.tsx
index a1f6a02cc32..369fcf19ef5 100644
--- a/apps/mobile/src/components/ui/AndroidAnchoredMenu.tsx
+++ b/apps/mobile/src/components/ui/AndroidAnchoredMenu.tsx
@@ -4,7 +4,6 @@ import { use, useRef, useState } from "react";
import type { StyleProp, ViewInstance, ViewStyle } from "react-native";
import { Pressable, ScrollView, View } from "react-native";
import { useKeyboardState } from "react-native-keyboard-controller";
-import Animated, { FadeIn } from "react-native-reanimated";
import { useHardwareBack } from "../../lib/backHandler";
import { deriveMenuHorizontalPlacement } from "../../lib/menu-placement";
@@ -181,8 +180,8 @@ export function AndroidAnchoredMenu(props: AndroidAnchoredMenuProps) {
onClose={close}
/>
) : (
- <Animated.View
- entering={FadeIn.duration(120)}
+ <View
+ // No entering animation: it freezes this frame before the Compose host reports its size.
className="absolute overflow-hidden bg-card-alt shadow-md"
style={{
left,
@@ -215,7 +214,7 @@ export function AndroidAnchoredMenu(props: AndroidAnchoredMenuProps) {
onClose={close}
/>
</ScrollView>
- </Animated.View>
+ </View>
)}
</View>
</OverlayPortal>