fix(mobile): keep context previews out of row layout

This commit is contained in:
joshuafhiggins committed 2026-11-15 14:29:38 -05:00 Verified
1 parent 37df7ba9b4
commit 5602413272
1 file changed
+6 -1
@@ -258,7 +258,12 @@ function MediaPreview({ preview }: { preview: MediaMenuPreview }) {
const height = Math.max(124, 32 + 76 * fontScale)
const isArtist = preview.kind === "artist"
return (
<NativeContextMenuPreview preferredContentSize={{ width, height }}>
// Match Expo Router's preview wrapper: UIKit mounts this separately, but
// Yoga must also keep it out of the trigger's normal layout.
<NativeContextMenuPreview
preferredContentSize={{ width, height }}
style={{ position: "absolute", top: 0, left: 0 }}
>
<View
style={{
width,