diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2023-04-01 17:44:58 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2023-04-01 17:51:16 +0200 |
| commit | eb25480919c73af5c02771c6124494f415f7a063 (patch) | |
| tree | 8ede26ac1764ce115894fa7b375d2a617bd9d33a /modules/Home.js | |
| parent | bb1eb5012dfee08024c0dbfe071af8c28f8cace6 (diff) | |
| download | geo-app-master.tar.gz geo-app-master.tar.zst geo-app-master.zip | |
Diffstat (limited to 'modules/Home.js')
| -rw-r--r-- | modules/Home.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/Home.js b/modules/Home.js new file mode 100644 index 0000000..aec9bf6 --- /dev/null +++ b/modules/Home.js @@ -0,0 +1,37 @@ +import * as React from 'react'; +import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; + +export default function Home(props) { + return ( + <View style={styles.cont}> + <TouchableOpacity style={styles.btn} onPress={() => props.navigation.navigate("main")}><Text style={styles.h1}>Geo App</Text></TouchableOpacity> + <Text style={styles.span}>Find and save your position</Text> + <Text style={styles.span}>Use map</Text> + </View> + ) +} + +const styles = StyleSheet.create({ + cont: { + flexDirection: "column", + marginTop: 10, + paddingTop: 10, + backgroundColor: "#3D54BB", + justifyContent: "center", + alignItems: "center", + height: "100%", + }, + btn: { + margin: 15, + }, + h1: { + color: "white", + fontSize: 60, + fontWeight: "bold", + }, + span: { + color: "white", + fontSize: 22, + } +}) + |
