fix(mobile): keep context previews out of row layout
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user