diff --git a/src/components/images/Gallery/index.tsx b/src/components/images/Gallery/index.tsx index 786d77f37f..ec93e0c188 100644 --- a/src/components/images/Gallery/index.tsx +++ b/src/components/images/Gallery/index.tsx @@ -96,6 +96,7 @@ export function Gallery({ onPressIn, viewContext, }: GalleryProps) { + const {t: l} = useLingui() const ax = useAnalytics() const {screenReaderEnabled} = useA11y() const largeAltBadge = useLargeAltBadgeEnabled() @@ -240,6 +241,9 @@ export function Gallery({ { itemWidthsRef.current.set(i, w) }} @@ -355,6 +360,7 @@ function GalleryImage({ contentHeight: height, image, index, + imageCount, onWidthChange, itemRef, hideBadges, @@ -367,6 +373,7 @@ function GalleryImage({ contentHeight: number image: AppBskyEmbedImages.ViewImage index: number + imageCount: number onWidthChange: (index: number, width: number) => void itemRef: (node: View | null) => void hideBadges?: boolean @@ -395,7 +402,11 @@ function GalleryImage({ }, [index, containerRef, onContainerRef]) return ( - +