summaryrefslogtreecommitdiffstats
path: root/App.js
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2023-04-01 17:44:58 +0200
committerMaksymilian Jopek <maks@jopek.eu>2023-04-01 17:51:16 +0200
commiteb25480919c73af5c02771c6124494f415f7a063 (patch)
tree8ede26ac1764ce115894fa7b375d2a617bd9d33a /App.js
parentbb1eb5012dfee08024c0dbfe071af8c28f8cace6 (diff)
downloadgeo-app-master.tar.gz
geo-app-master.tar.zst
geo-app-master.zip
Working appHEADmaster
Diffstat (limited to 'App.js')
-rw-r--r--App.js57
1 files changed, 53 insertions, 4 deletions
diff --git a/App.js b/App.js
index 09f879b..920a0f5 100644
--- a/App.js
+++ b/App.js
@@ -1,12 +1,61 @@
import { StatusBar } from 'expo-status-bar';
-import { StyleSheet, Text, View } from 'react-native';
+import { StyleSheet } from 'react-native';
+import { NavigationContainer } from '@react-navigation/native';
+import { createNativeStackNavigator } from '@react-navigation/native-stack';
+const Stack = createNativeStackNavigator();
+
+import Home from "./modules/Home";
+import Main from "./modules/Main";
+import Map from "./modules/Map";
export default function App() {
return (
- <View style={styles.container}>
- <Text>Open up App.js to start working on your app!</Text>
+ <NavigationContainer>
+ <Stack.Navigator>
+ <Stack.Screen name="home" component={Home} options={{ headerShown: false }} />
+ <Stack.Screen name="main" component={Main} options={{
+ title: 'Save position',
+ headerStyle: {
+ backgroundColor: '#3D54BB',
+ },
+ headerTintColor: '#ffffff',
+ headerTitleStyle: {
+ fontWeight: 'bold',
+ },
+ }} />
+ <Stack.Screen name="mapV" component={Map} options={{
+ title: 'Location on map',
+ headerStyle: {
+ backgroundColor: '#3D54BB',
+ },
+ headerTintColor: '#ffffff',
+ headerTitleStyle: {
+ fontWeight: 'bold',
+ },
+ }} />
+ {/* <Stack.Screen name="camera" component={Camera} options={{ */}
+ {/* title: 'Camera', */}
+ {/* headerStyle: { */}
+ {/* backgroundColor: '#EB1F63', */}
+ {/* }, */}
+ {/* headerTintColor: '#ffffff', */}
+ {/* headerTitleStyle: { */}
+ {/* fontWeight: 'bold', */}
+ {/* }, */}
+ {/* }} /> */}
+ {/* <Stack.Screen name="settings" component={Setting} options={{ */}
+ {/* title: 'Settings', */}
+ {/* headerStyle: { */}
+ {/* backgroundColor: '#EB1F63', */}
+ {/* }, */}
+ {/* headerTintColor: '#ffffff', */}
+ {/* headerTitleStyle: { */}
+ {/* fontWeight: 'bold', */}
+ {/* }, */}
+ {/* }} /> */}
+ </Stack.Navigator>
<StatusBar style="auto" />
- </View>
+ </NavigationContainer>
);
}