24 lines
570 B
TypeScript
24 lines
570 B
TypeScript
import { useNavigation } from "@react-navigation/native";
|
|
import { Button, StyleSheet, Text, View } from "react-native";
|
|
|
|
export default function HomeScreen() {
|
|
const navigation = useNavigation();
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
<Text>Open up App.tsx to start working on your app!</Text>
|
|
|
|
<Button title="profile" onPress={() => navigation.navigate("Profile")} />
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: "#fff",
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
},
|
|
});
|