Added new atributes to view in notice id
Also added SafeAreView to userid
This commit is contained in:
@@ -392,6 +392,16 @@ export default function NoticeDetails() {
|
|||||||
<Text className="font-bold text-gray-950">{notice.category}</Text>
|
<Text className="font-bold text-gray-950">{notice.category}</Text>
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
{notice.attributes && notice.attributes.length > 0 && (
|
||||||
|
<Box className="mt-4 bg-gray-50 p-3 rounded-lg shadow-sm">
|
||||||
|
{notice.attributes.map((attribute, index) => (
|
||||||
|
<Text key={index} className="text-sm text-typography-500 mb-1">
|
||||||
|
{attribute.name}:{" "}
|
||||||
|
<Text className="font-bold text-gray-950">{attribute.value}</Text>
|
||||||
|
</Text>
|
||||||
|
))}
|
||||||
|
</Box>
|
||||||
|
)}
|
||||||
<Box className="mt-4 bg-gray-50 p-3 rounded-lg shadow-sm">
|
<Box className="mt-4 bg-gray-50 p-3 rounded-lg shadow-sm">
|
||||||
|
|
||||||
<Text className="text-2xl text-gray-950">Opis ogloszenia</Text>
|
<Text className="text-2xl text-gray-950">Opis ogloszenia</Text>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useLocalSearchParams, Stack } from "expo-router";
|
import { useLocalSearchParams, Stack } from "expo-router";
|
||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import { FlatList, ActivityIndicator, Text } from "react-native";
|
import {FlatList, ActivityIndicator, Text, SafeAreaView} from "react-native";
|
||||||
import { Box } from "@/components/ui/box";
|
import { Box } from "@/components/ui/box";
|
||||||
import { Image } from "@/components/ui/image";
|
import { Image } from "@/components/ui/image";
|
||||||
import { VStack } from "@/components/ui/vstack";
|
import { VStack } from "@/components/ui/vstack";
|
||||||
@@ -44,6 +44,7 @@ export default function UserProfile() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<SafeAreaView className="flex-1" edges={['right', 'bottom', 'left']}>
|
||||||
<VStack className="p-4">
|
<VStack className="p-4">
|
||||||
<Stack.Screen
|
<Stack.Screen
|
||||||
options={{
|
options={{
|
||||||
@@ -54,7 +55,7 @@ export default function UserProfile() {
|
|||||||
<Image
|
<Image
|
||||||
source={{
|
source={{
|
||||||
uri:
|
uri:
|
||||||
user.profileImage ||
|
user.image ||
|
||||||
"https://th.bing.com/th/id/OIP.3coo_N8sieled8QNroQmkgHaHa?rs=1&pid=ImgDetMain",
|
"https://th.bing.com/th/id/OIP.3coo_N8sieled8QNroQmkgHaHa?rs=1&pid=ImgDetMain",
|
||||||
}}
|
}}
|
||||||
className="h-16 w-16 rounded-full mr-4"
|
className="h-16 w-16 rounded-full mr-4"
|
||||||
@@ -80,5 +81,6 @@ export default function UserProfile() {
|
|||||||
<Text>Ten użytkownik nie ma żadnych ogłoszeń.</Text>
|
<Text>Ten użytkownik nie ma żadnych ogłoszeń.</Text>
|
||||||
)}
|
)}
|
||||||
</VStack>
|
</VStack>
|
||||||
|
</SafeAreaView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user