zdjęcia wyświetlają się poprawnie teraz na karcie produktu. Nie wychodzą poza swoje granice

This commit is contained in:
2025-06-09 10:09:28 +02:00
parent 5344acbdd1
commit 44f5239328

View File

@@ -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>
)}