Untitled
unknown
plain_text
9 months ago
718 B
5
Indexable
import { View, Text, Button } from 'react-native';
import { useRouter } from 'expo-router';
export default function Dashboard() {
const router = useRouter();
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Text style={{ fontSize: 20, fontWeight: 'bold' }}>Dashboard</Text>
<Text>Welcome to your Dashboard!</Text>
<Button title="Go Home" onPress={() => router.push('/')} />
<Button title="Logout" onPress={() => router.push('/login')} color="red" />
</View>
);
}
)
}Editor is loading...
Leave a Comment