feat: create base sign in screen

This commit is contained in:
Vinicius Souza 2024-10-24 08:19:27 -03:00
parent 16a59cae61
commit 10f6604950
2 changed files with 21 additions and 4 deletions

View file

@ -1,10 +1,11 @@
import { StatusBar } from 'react-native';
import { useFonts, Roboto_400Regular, Roboto_700Bold } from '@expo-google-fonts/roboto';
import { Center, GluestackUIProvider, Text } from '@gluestack-ui/themed';
import { GluestackUIProvider } from '@gluestack-ui/themed';
import { Loading } from '@components/Loading';
import { config } from './config/gluestack-ui.config';
import { SignIn } from '@screens/SignIn';
export default function App() {
const [fontsLoaded] = useFonts({
@ -15,9 +16,7 @@ export default function App() {
return (
<GluestackUIProvider config={config}>
{fontsLoaded ? (
<Center flex={1} bg="$gray700">
<Text color="white" fontSize={34}>Ignite Gym</Text>
</Center>
<SignIn />
) : (
<Loading />
)}

18
src/screens/SignIn.tsx Normal file
View file

@ -0,0 +1,18 @@
import { Image, VStack } from "@gluestack-ui/themed";
import BackgroundImg from '@assets/background.png';
export function SignIn() {
return (
<VStack flex={1} bg="$gray700">
<Image
source={BackgroundImg}
defaultSource={BackgroundImg}
alt="Pessoas treinando"
position="absolute"
w="$full"
h={624}
/>
</VStack>
)
}