35 lines
852 B
TypeScript
35 lines
852 B
TypeScript
![]() |
import React from 'react';
|
||
|
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
||
|
import { Ionicons } from '@expo/vector-icons';
|
||
|
|
||
|
export const UserNav: React.FC = () => {
|
||
|
return (
|
||
|
<TouchableOpacity style={styles.container}>
|
||
|
<Ionicons name="person-circle-outline" size={32} color="gray" />
|
||
|
<View style={styles.userInfo}>
|
||
|
<Text style={styles.userName}>John Doe</Text>
|
||
|
<Text style={styles.userEmail}>john@example.com</Text>
|
||
|
</View>
|
||
|
<Ionicons name="chevron-down-outline" size={24} color="gray" />
|
||
|
</TouchableOpacity>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
const styles = StyleSheet.create({
|
||
|
container: {
|
||
|
flexDirection: 'row',
|
||
|
alignItems: 'center',
|
||
|
padding: 10,
|
||
|
},
|
||
|
userInfo: {
|
||
|
marginLeft: 10,
|
||
|
flex: 1,
|
||
|
},
|
||
|
userName: {
|
||
|
fontWeight: 'bold',
|
||
|
},
|
||
|
userEmail: {
|
||
|
color: 'gray',
|
||
|
},
|
||
|
});
|