From 355e1d7933c20a11fbe78f20d200d8b4db56e65c Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Sun, 15 Nov 2026 15:36:09 -0500 Subject: [PATCH] fix(mobile): keep player menu actions in context menu order --- apps/mobile/components/media-menu.ios.tsx | 45 +++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 apps/mobile/components/media-menu.ios.tsx diff --git a/apps/mobile/components/media-menu.ios.tsx b/apps/mobile/components/media-menu.ios.tsx new file mode 100644 index 0000000..f5a67a8 --- /dev/null +++ b/apps/mobile/components/media-menu.ios.tsx @@ -0,0 +1,45 @@ +import type { MenuComponentProps } from "@expo/ui/community/menu" +import { Button, Host, Menu, RNHostView } from "@expo/ui/swift-ui" +import { disabled, menuOrder } from "@expo/ui/swift-ui/modifiers" + +// SwiftUI's automatic order reverses menus that open upward in the player. +// Keep the same top-to-bottom order as the UIKit long-press menus. +export function MenuView({ + actions, + children, + style, + testID, + onPressAction, +}: MenuComponentProps) { + return ( + + + <>{children} + + } + > + {actions + .filter((action) => !action.attributes?.hidden) + .map((action) => ( + + + ) +}