Revert "fix(mobile): handle Android swipes inside native menu hosts"

This reverts commit c8a6df454d.
This commit is contained in:
joshuafhiggins committed 2026-11-15 17:34:42 -05:00 Verified
1 parent c8a6df454d
commit 33eb56b545
1 file changed
+4 -15
+4 -15
View File
@@ -11,11 +11,7 @@ import {
} from "@expo/ui/jetpack-compose"
import { useState } from "react"
import { Pressable, View } from "react-native"
import {
Gesture,
GestureDetector,
GestureHandlerRootView,
} from "react-native-gesture-handler"
import { Gesture, GestureDetector } from "react-native-gesture-handler"
import { appleMusic } from "@/lib/theme"
@@ -79,16 +75,9 @@ export function MenuView({
matchContents={shouldOpenOnLongPress ? { vertical: true } : true}
>
{shouldOpenOnLongPress ? (
// Compose hosts the RN subtree across a native touch boundary.
// Keep its menu and row gestures under a root inside that boundary.
<GestureHandlerRootView
unstable_forceActive
style={{ alignSelf: "stretch" }}
>
<GestureDetector gesture={longPress}>
<View collapsable={false}>{children}</View>
</GestureDetector>
</GestureHandlerRootView>
<GestureDetector gesture={longPress}>
<View collapsable={false}>{children}</View>
</GestureDetector>
) : (
<Pressable
onPress={() => setExpanded(true)}