-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
62 lines (53 loc) · 2.4 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
import * as React from 'react';
import { StyleSheet, Button } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HomePage from './pages/HomePage';
import ModifyHousePage from './pages/ModifyHousePage.js';
import LoginPage from'./pages/LoginPage';
import SpendingPage from'./pages/SpendingPage';
import HousePage from'./pages/HousePage';
import ImprovePage from'./pages/ImprovePage';
import SignupPage from './pages/SignupPage';
import GeneralInfoPage from './pages/GeneralInfoPage';
import HomeEnergyPage from './pages/HomeEnergyPage';
import householdVehiclesPage from './pages/householdVehiclesPage';
import wastePage from './pages/wastePage';
import SavingsPage from './pages/SavingsPage';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Login" component={LoginPage} />
<Stack.Screen name="Home" component={HomePage}
options={{ title: 'Home', headerLeft: () => (
<Button
title="Log out"
/>
),}}/>
<Stack.Screen name="ModifyHouse" component={ModifyHousePage} options={{title:"House Settings"}} />
<Stack.Screen name="Spending" component={SpendingPage} options={{title:"Spending"}} />
<Stack.Screen name="House" component={HousePage} options={{title:"House"}} />
<Stack.Screen name="Improve" component={ImprovePage} options={{title:"Improve"}} />
<Stack.Screen name="Signup" component={SignupPage} options={{title:"Signup"}} />
<Stack.Screen name="HomeEnergy" component={HomeEnergyPage} options={{title:"Home Energy"}} />
<Stack.Screen name="HouseholdVehicles" component={householdVehiclesPage} options={{title:"Household Vehicles"}} />
<Stack.Screen name="Waste" component={wastePage} options={{title:"Waste"}} />
<Stack.Screen name="GeneralInfo" component={GeneralInfoPage} options={{title:"General Info"}} />
<Stack.Screen name="Savings" component={SavingsPage} options={{title:"Savings"}} />
</Stack.Navigator>
</NavigationContainer>
</>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'lightblue',
},
footerContainer: {
backgroundColor: 'lightblue'
}
});