-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathStackNavigator.js
22 lines (20 loc) · 932 Bytes
/
StackNavigator.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HomeScreen from './screens/HomeScreen';
import WorkoutScreen from './screens/WorkoutScreen';
import FitScreen from './screens/FitScreen';
import RestScreen from './screens/RestScreen';
const StackNavigator = () => {
const Stack = createNativeStackNavigator();
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen options={{headerShown: false}} name="Home" component={HomeScreen} />
<Stack.Screen options={{headerShown: false}} name="Workout" component={WorkoutScreen} />
<Stack.Screen options={{ headerShown: false }} name="Fit" component={FitScreen} />
<Stack.Screen options={{ headerShown: false }} name="Rest" component={RestScreen} />
</Stack.Navigator>
</NavigationContainer>
)
}
export default StackNavigator