-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
56 lines (50 loc) · 1.52 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import React from "react";
import { StyleSheet } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import InitScreen from "./src/screens/InitScreen";
import StartScreen from "./src/screens/StartScreen";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { DefaultTheme, Provider as PaperProvider } from "react-native-paper";
import { MobxProvider } from "./src/components/provider";
import ScreenWorkoutContainer from "./src/screens/ScreenWorkoutContainer";
import ResultsScreenContainer from "./src/screens/ResultsScreenContainer";
const Tab = createBottomTabNavigator();
const theme = {
...DefaultTheme,
roundness: 2,
colors: {
...DefaultTheme.colors,
primary: "#3498db",
accent: "#f1c40f",
},
};
export default function App() {
return (
<MobxProvider>
<PaperProvider theme={theme}>
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen
name="Start"
component={ScreenWorkoutContainer}
options={{ headerShown: false }}
/>
<Tab.Screen name="Settings" component={InitScreen} />
<Tab.Screen name="Results" component={ResultsScreenContainer} />
</Tab.Navigator>
</NavigationContainer>
</PaperProvider>
</MobxProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
title: {
paddingBottom: 100,
},
});