Order zwracał 403, bo nie było headerów
Zdjęcia nie były centerowane względem szerokości
This commit is contained in:
@@ -49,6 +49,8 @@ export default function NoticeDetails() {
|
||||
const [Email, setEmail] = useState("");
|
||||
const [isSending, setIsSending] = useState(false);
|
||||
|
||||
const {width} = Dimensions.get("window");
|
||||
|
||||
const handleSendMessage = async () => {
|
||||
setIsSending(true);
|
||||
console.log("Rozpoczynanie procesu wysyłania wiadomości...");
|
||||
@@ -303,6 +305,7 @@ export default function NoticeDetails() {
|
||||
data={images}
|
||||
horizontal
|
||||
snapToAlignment="start"
|
||||
snapToInterval={width}
|
||||
decelerationRate="fast"
|
||||
showsHorizontalScrollIndicator={false}
|
||||
pagingEnabled
|
||||
@@ -311,13 +314,14 @@ export default function NoticeDetails() {
|
||||
style={isLandscape ? { flex: 1 } : {}}
|
||||
renderItem={({ item, index }) => (
|
||||
<View
|
||||
style={{ width: Dimensions.get("window").width }}
|
||||
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="cover"
|
||||
renderMode="contain"
|
||||
className={
|
||||
isLandscape
|
||||
|
||||
Reference in New Issue
Block a user