Added new atributes to view in notice id

Also added SafeAreView to userid
This commit is contained in:
2025-06-10 21:38:10 +02:00
parent b96e8f264b
commit 90ada963bf
2 changed files with 14 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import { useLocalSearchParams, Stack } from "expo-router";
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 { Image } from "@/components/ui/image";
import { VStack } from "@/components/ui/vstack";
@@ -44,6 +44,7 @@ export default function UserProfile() {
);
return (
<SafeAreaView className="flex-1" edges={['right', 'bottom', 'left']}>
<VStack className="p-4">
<Stack.Screen
options={{
@@ -54,7 +55,7 @@ export default function UserProfile() {
<Image
source={{
uri:
user.profileImage ||
user.image ||
"https://th.bing.com/th/id/OIP.3coo_N8sieled8QNroQmkgHaHa?rs=1&pid=ImgDetMain",
}}
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>
)}
</VStack>
</SafeAreaView>
);
}