-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
25 lines (21 loc) · 886 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
import { StatusBar } from "expo-status-bar";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { MAIN_COLOR } from "./styles/theme";
import GameContextWrapper from "./components/GameContextWrapper";
import CustomTabNav from "./components/CustomTabNav";
import HomeScreen from "./components/HomeScreen";
import GameboardScreen from "./components/GameboardScreen";
import ScoreboardScreen from "./components/ScoreboardScreen";
const Tab = createBottomTabNavigator();
export default function App() {
return (
<GameContextWrapper>
<CustomTabNav tab={Tab}>
<Tab.Screen name="Home" component={HomeScreen} />
<Tab.Screen name="Gameboard" component={GameboardScreen} />
<Tab.Screen name="Scoreboard" component={ScoreboardScreen} />
</CustomTabNav>
<StatusBar style="light" backgroundColor={MAIN_COLOR} />
</GameContextWrapper>
);
}