-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
64 lines (61 loc) · 2.12 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
57
58
59
60
61
62
63
64
import React from "react";
import { NativeBaseProvider } from "native-base";
import { NavigationContainer } from "@react-navigation/native";
import BreatheScreen from "./components/BreatheScreen";
import HomeScreen from "./components/home";
import Footer from "./components/footer";
import MotivationScreen from "./components/motivationScreen";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import WaterScreen from "./components/waterScreen";
import SettingsScreen from "./components/settingScreen";
import ProfileScreen from "./components/profileScreen";
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NativeBaseProvider>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={HomeScreen} options={{
headerStyle: {
backgroundColor: 'beige'
},
headerTitleStyle:{
fontWeight:'bold'
},
headerBackVisible: false
}} />
<Stack.Screen name="Motivation" component={MotivationScreen} options={{
headerStyle:{
backgroundColor: "#f87171" //error.400
},
headerTitleStyle:{
fontWeight:'bold'
},
headerBackVisible: false
}}/>
<Stack.Screen name="Water" component={WaterScreen} options={{
headerStyle:{
backgroundColor: "#7dd3fc"
},
headerTitleStyle:{
fontWeight:'bold'
},
headerBackVisible: false
}}/>
<Stack.Screen name="Settings" component={SettingsScreen} />
<Stack.Screen name="Profile" component={ProfileScreen} />
<Stack.Screen name="Breathe" component={BreatheScreen} options={{
headerStyle:{
backgroundColor: "#a7f3d0"
},
headerTitleStyle:{
fontWeight:'bold'
},
headerBackVisible: false
}}/>
</Stack.Navigator>
<Footer />
</NavigationContainer>
</NativeBaseProvider>
);
}