39 lines
773 B
TypeScript
39 lines
773 B
TypeScript
import { Link } from "expo-router";
|
|
import { StyleSheet, Text, View } from "react-native";
|
|
|
|
export function HomeScreen() {
|
|
return (
|
|
<View style={styles.container}>
|
|
<Text style={styles.title}>lamp</Text>
|
|
<Text style={styles.subtitle}>OpenIM powered messaging workspace</Text>
|
|
<Link href="/modal" style={styles.link}>
|
|
Open modal preview
|
|
</Link>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: "center",
|
|
alignItems: "center",
|
|
gap: 10,
|
|
padding: 24,
|
|
},
|
|
title: {
|
|
fontSize: 32,
|
|
fontWeight: "700",
|
|
letterSpacing: 0.5,
|
|
},
|
|
subtitle: {
|
|
fontSize: 15,
|
|
color: "#5c6169",
|
|
},
|
|
link: {
|
|
marginTop: 8,
|
|
fontSize: 16,
|
|
fontWeight: "600",
|
|
},
|
|
});
|