Skip to content

Commit

Permalink
criando tela de perfil #6
Browse files Browse the repository at this point in the history
  • Loading branch information
CauaNicolas committed May 24, 2024
1 parent b1c375f commit b8b4b92
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/GymTracker/routes/app.routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import Home from '../screens/Home';
import Login from '../screens/Login';
import Register from '../screens/Registe';
import { Treino } from '../screens/Treino';
import Perfil from '../screens/Perfil';

export default function AppRoutes(){
const { Navigator, Screen } = createNativeStackNavigator()
return (
<Navigator screenOptions={{headerShown: false}} initialRouteName='Home' >
<Navigator screenOptions={{headerShown: false}} initialRouteName='Perfil' >
<Screen
name='Home'
component={Home}
Expand Down Expand Up @@ -35,9 +36,14 @@ export default function AppRoutes(){
options={{
animation:'fade',
}}
>

</Screen>
/>
<Screen
name='Perfil'
component={Perfil}
options={{
animation:'fade',
}}
/>

</Navigator>
)
Expand Down
10 changes: 10 additions & 0 deletions src/GymTracker/screens/Perfil.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { View, Text} from "react-native";

export default function Perfil(){
return (

<View className="w-full h-full bg-zinc-950 items flex items-center justify-center">
<Text className="text-white">Perfil</Text>
</View>
)
}

0 comments on commit b8b4b92

Please sign in to comment.