diff --git a/apps/mobile/src/components/ui/carousel/MediaCarousel.tsx b/apps/mobile/src/components/ui/carousel/MediaCarousel.tsx index 7f7b3e39c..5bdb33826 100644 --- a/apps/mobile/src/components/ui/carousel/MediaCarousel.tsx +++ b/apps/mobile/src/components/ui/carousel/MediaCarousel.tsx @@ -1,3 +1,4 @@ +import type { FeedViewType } from "@follow/constants" import { useEffect, useMemo, useState } from "react" import { ScrollView, View } from "react-native" import Animated, { @@ -20,11 +21,13 @@ export const MediaCarousel = ({ media, onPreview, aspectRatio, + view, }: { entryId: string media: MediaModel[] onPreview?: () => void aspectRatio: number + view?: FeedViewType }) => { const [containerWidth, setContainerWidth] = useState(0) const containerHeight = Math.floor(containerWidth / aspectRatio) @@ -65,7 +68,7 @@ export const MediaCarousel = ({ className="relative" style={{ width: containerWidth, height: containerHeight }} > - + +