-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
31 lines (30 loc) · 1.48 KB
/
App.tsx
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
28
29
30
31
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { Provider } from "react-redux";
import { store } from "./redux/store";
import { ContentScreen } from "./screens/ContentScreen";
import { ExercisingScreen } from "./screens/Fitness/ExercisingScreen";
import { FitnessHomeScreen } from "./screens/Fitness/FitnessHomeScreen";
import { RestScreen } from "./screens/Fitness/RestScreen";
import { WorkoutScreen } from "./screens/Fitness/WorkoutScreen";
import { LoginScreen } from "./screens/authentication/LoginScreen";
import { RegisterScreen } from "./screens/authentication/RegisterScreen";
import { fetchLeaderboard } from "./redux/leaderboardSlice";
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Provider store={store}>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="Login" component={LoginScreen} />
<Stack.Screen name="Register" component={RegisterScreen} />
<Stack.Screen name="Content" component={ContentScreen} />
<Stack.Screen name="FitnessHome" component={FitnessHomeScreen} />
<Stack.Screen name="Workout" component={WorkoutScreen} />
<Stack.Screen name="Exercising" component={ExercisingScreen} />
<Stack.Screen name="Rest" component={RestScreen} />
</Stack.Navigator>
</Provider>
</NavigationContainer>
);
}