zdjęcia wyświetlają się poprawnie teraz na karcie produktu. Nie wychodzą poza swoje granice
This commit is contained in:
@@ -166,19 +166,20 @@ export default function NoticeDetails() {
|
||||
ref={flatListRef}
|
||||
data={images}
|
||||
horizontal
|
||||
snapToAlignment="center"
|
||||
snapToInterval={width}
|
||||
snapToAlignment="start"
|
||||
decelerationRate="fast"
|
||||
showsHorizontalScrollIndicator={false}
|
||||
pagingEnabled
|
||||
onViewableItemsChanged={onViewableItemsChanged}
|
||||
viewabilityConfig={viewabilityConfig}
|
||||
renderItem={({item, index}) => (
|
||||
<View style={{width: width}} className='p-2'>
|
||||
<View style={{width: width}} className="p-1">
|
||||
<Image
|
||||
source={item}
|
||||
className="h-auto w-auto rounded-md aspect-[1/1]"
|
||||
alt={`Zdjęcie ${index + 1}`}
|
||||
resizeMode="contain"
|
||||
resizeMode="cover"
|
||||
/>
|
||||
</View>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user