forked from KarthikS373/WCARL-drone-application
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
50 lines (46 loc) · 1.61 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
import 'react-native-gesture-handler';
import Gryoscope from "./component/Gyroscope";
import Accelerometer from "./component/Accelerometer";
import Camera from "./component/Camera";
import Network from "./component/Network";
import HomeScreen from './component/HomeScreen';
import { SafeAreaView, ScrollView, StyleSheet } from "react-native";
import Proximity from "./component/Proximity";
import Storage from "./component/Storage";
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
export default function App({navigation}) {
const Stack = createNativeStackNavigator();
return (
// <SafeAreaView style={styles.container}>
// <ScrollView>
// <Gryoscope />
// <Accelerometer />
// <Network />
// <Camera />
// <Storage />
// {/* <Proximity /> */}
// </ScrollView>
// </SafeAreaView>
<>
<NavigationContainer>
<Stack.Navigator initialRouteName='home'>
<Stack.Screen name="home" component={HomeScreen}/>
<Stack.Screen name="Gyroscope" component={Gryoscope}/>
<Stack.Screen name="accelerometer" component={Accelerometer}/>
<Stack.Screen name="Network" component={Network}/>
<Stack.Screen name="Storage" component={Storage}/>
<Stack.Screen name="Proximity" component={Proximity}/>
<Stack.Screen name="Camera" component={Camera}/>
</Stack.Navigator>
</NavigationContainer>
</>
);
}
const styles = StyleSheet.create({
container: {
padding: 30,
flex: 1,
justifyContent: "center",
},
});