feat: create screen header component

This commit is contained in:
Vinicius Souza 2024-10-25 17:42:50 -03:00
parent b3480ec8da
commit 1f028cf1fa
2 changed files with 21 additions and 5 deletions

View file

@ -0,0 +1,15 @@
import { Center, Heading } from '@gluestack-ui/themed';
type Props = {
title: string;
};
export function ScreenHeader({ title }: Props) {
return (
<Center bg="$gray600" pb="$6" pt="$16">
<Heading color="$gray100" fontSize="$xl">
{title}
</Heading>
</Center>
);
}

View file

@ -1,9 +1,10 @@
import { Center, Text } from "@gluestack-ui/themed";
import { ScreenHeader } from '@components/ScreenHeader';
import { VStack } from '@gluestack-ui/themed';
export function History() {
return (
<Center flex={1}>
<Text>History</Text>
</Center>
)
<VStack flex={1}>
<ScreenHeader title="Histórico" />
</VStack>
);
}