-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathHomeScreen.tsx
45 lines (42 loc) · 1.03 KB
/
HomeScreen.tsx
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
import React from "react";
import { StyleSheet, View, Button, Text } from "react-native";
const HomeScreen = ({ navigation }) => {
return (
<View style={styles.container}>
<Text style={styles.text}>Tap a suite to start measuring</Text>
<Button
title="Simple component"
onPress={() => navigation.navigate("simple-component")}
/>
<Button
title="Updating variants"
onPress={() => navigation.navigate("updating-variant")}
/>
<Button
title="Theme and inline style"
onPress={() => navigation.navigate("theme-inline-styling")}
/>
<Button
title="Layout screen"
onPress={() => navigation.navigate("layout-screen")}
/>
</View>
);
};
export default HomeScreen;
const styles = StyleSheet.create({
container: {
alignItems: "center",
backgroundColor: "#fff",
flex: 1,
justifyContent: "center",
marginTop: 32,
},
text: {
marginVertical: 12,
},
bold: {
fontWeight: "bold",
fontSize: 16,
},
});