Revert "fix(mobile): handle Android swipes inside native menu hosts"
This reverts commit c8a6df454d.
This commit is contained in:
1 file changed
+4
-15
@@ -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)}
|
||||
|
||||
Reference in new issue
Block a user