Only do reduced layout if images embed

This commit is contained in:
Eric Bailey
2024-09-04 13:08:39 -05:00
parent eb067d759a
commit 8ea6155bb4
5 changed files with 59 additions and 32 deletions
+3 -1
View File
@@ -1,8 +1,9 @@
import React from 'react'
import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native'
import {AppBskyEmbedImages} from '@atproto/api'
import {GalleryItem} from './Gallery'
import {isWeb} from 'platform/detection'
import {GalleryItem} from './Gallery'
interface ImageLayoutGridProps {
images: AppBskyEmbedImages.ViewImage[]
@@ -10,6 +11,7 @@ interface ImageLayoutGridProps {
onLongPress?: (index: number) => void
onPressIn?: (index: number) => void
style?: StyleProp<ViewStyle>
hideBadges?: boolean
}
export function ImageLayoutGrid({style, ...props}: ImageLayoutGridProps) {