-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
27 lines (24 loc) · 975 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React from 'react'
import { NavigationContainer } from '@react-navigation/native'
import { createStackNavigator } from '@react-navigation/stack'
import UserProfileScreen from './screens/UserProfileScreen'
import GoalSettingScreen from './screens/GoalSettingScreen'
import WorkoutLoggingScreen from './screens/WorkoutLoggingScreen'
import ProgressTrackingScreen from './screens/ProgressTrackingScreen'
const Stack = createStackNavigator()
function App () {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName='UserProfile'>
<Stack.Screen name='UserProfile' component={UserProfileScreen} />
<Stack.Screen name='GoalSetting' component={GoalSettingScreen} />
<Stack.Screen name='WorkoutLogging' component={WorkoutLoggingScreen} />
<Stack.Screen
name='ProgressTracking'
component={ProgressTrackingScreen}
/>
</Stack.Navigator>
</NavigationContainer>
)
}
export default App