-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
73 lines (63 loc) · 2.33 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
65
66
67
68
69
70
71
72
73
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { View, Text, Button, StyleSheet } from 'react-native';
import HomeScreen from './screens/HomeScreen';
import SignUpScreen from './screens/SignUpScreen';
import ProfileScreen from './screens/ProfileScreen';
import UploadScreen from './screens/UploadScreen';
import LevelUpScreen from './screens/LevelUpScreen2';
import GardenScreen from './screens/GardenScreen';
import React, { useEffect } from "react";
import { getStorage, ref } from "firebase/storage";
import PlantIdentificationScreen from './screens/PlantIdentificationScreen';
import LocationScreen from './screens/LocationScreen';
import GameScreen from './screens/GameScreen'; // Assuming you have a GameScreen.js
const Stack = createNativeStackNavigator();
import { StatusBar } from 'expo-status-bar';
import { AppRegistry } from 'react-native';
import { name as appName } from './app.json';
const App = () => {
return (
<View style={styles.container}>
<NavigationContainer>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="SignUp" component={SignUpScreen} />
<Stack.Screen name="Profile" component={ProfileScreen} />
<Stack.Screen name="Upload" component={UploadScreen} />
<Stack.Screen name="LevelUp" component={LevelUpScreen} />
<Stack.Screen name="Plant Identity" component={PlantIdentificationScreen} />
<Stack.Screen name="Location" component={LocationScreen} />
<Stack.Screen name="Game" component={GameScreen} />
<Stack.Screen name="Garden" component={GardenScreen} />
</Stack.Navigator>
</NavigationContainer>
<StatusBar style="auto" />
{/* <Text>Gardenia!</Text> */}
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
// flexWrap: "wrap",
backgroundColor: '#E4F6F3',
},
});
export default App;
// export default function App() {
// return (
// <View style={styles.container}>
// <Text>Gardenia!</Text>
// <StatusBar style="auto" />
// </View>
// );
// }
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// backgroundColor: '#fff',
// alignItems: 'center',
// justifyContent: 'center',
// },
// });