-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
27 lines (24 loc) · 1.19 KB
/
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 { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import HomeScreen from './components/home/HomeScreen';
import DashboardScreen from './components/dashboard/DashboardScreen';
import MainPage from './components/Guest/MainPage';
import ProfilePage from './components/profile/ProfilePage';
import InventoryScreen from './components/inventory/InventoryScreen';
import LoginScreen from './components/login/LoginScreen';
import LeaderboardScreen from './components/leaderboard/LeaderboardScreen';
import AchievementScreen from './components/achievements/AchievementScreen';
import BottomNavigationTabs from './components/bottomNavigationTabs/BottomNavigationTabs';
const MainNavigator = createStackNavigator({
Login: { screen: LoginScreen },
Home: { screen: HomeScreen },
Dashboard: { screen: DashboardScreen },
GuestPage: { screen: MainPage },
Profile: { screen: ProfilePage },
Inventory: { screen: InventoryScreen },
Leaderboard: { screen: LeaderboardScreen },
Achievements: { screen: AchievementScreen },
BottomNavigationTabs: { screen: BottomNavigationTabs },
});
const App = createAppContainer(MainNavigator);
export default App;