feat: add header and photo to profile screen

This commit is contained in:
Vinicius Souza 2024-10-26 15:08:52 -03:00
parent a8297b59c2
commit 7a26c9da62

View file

@ -1,9 +1,23 @@
import { Center, Text } from "@gluestack-ui/themed";
import { Center, Text, VStack } from '@gluestack-ui/themed';
import { ScrollView } from 'react-native';
import { ScreenHeader } from '@components/ScreenHeader';
import { UserPhoto } from '@components/UserPhoto';
export function Profile() {
return (
<Center flex={1}>
<Text>Profile</Text>
</Center>
)
<VStack flex={1}>
<ScreenHeader title="Perfil" />
<ScrollView contentContainerStyle={{ paddingHorizontal: 36 }}>
<Center mt="$6" px="$10">
<UserPhoto
source={{ uri: 'https://i.pravatar.cc/200' }}
alt="imagem de perfil"
size="xl"
/>
</Center>
</ScrollView>
</VStack>
);
}