From c8a6df454dea81f8bd2a43727d6b30ff31f80a9a Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Sun, 15 Nov 2026 17:31:35 -0500 Subject: [PATCH] fix(mobile): handle Android swipes inside native menu hosts --- apps/mobile/components/media-menu.android.tsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/apps/mobile/components/media-menu.android.tsx b/apps/mobile/components/media-menu.android.tsx index 137e62c..e54a04c 100644 --- a/apps/mobile/components/media-menu.android.tsx +++ b/apps/mobile/components/media-menu.android.tsx @@ -11,7 +11,11 @@ import { } from "@expo/ui/jetpack-compose" import { useState } from "react" import { Pressable, View } from "react-native" -import { Gesture, GestureDetector } from "react-native-gesture-handler" +import { + Gesture, + GestureDetector, + GestureHandlerRootView, +} from "react-native-gesture-handler" import { appleMusic } from "@/lib/theme" @@ -75,9 +79,16 @@ export function MenuView({ matchContents={shouldOpenOnLongPress ? { vertical: true } : true} > {shouldOpenOnLongPress ? ( - - {children} - + // Compose hosts the RN subtree across a native touch boundary. + // Keep its menu and row gestures under a root inside that boundary. + + + {children} + + ) : ( setExpanded(true)}