34 lines
679 B
TypeScript
34 lines
679 B
TypeScript
import React from 'react';
|
|
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
|
|
|
|
export const UserNav: React.FC = () => {
|
|
return (
|
|
<TouchableOpacity style={styles.container}>
|
|
|
|
<View style={styles.userInfo}>
|
|
<Text style={styles.userName}>John Doe</Text>
|
|
<Text style={styles.userEmail}>john@example.com</Text>
|
|
</View>
|
|
|
|
</TouchableOpacity>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
padding: 10,
|
|
},
|
|
userInfo: {
|
|
marginLeft: 10,
|
|
flex: 1,
|
|
},
|
|
userName: {
|
|
fontWeight: 'bold',
|
|
},
|
|
userEmail: {
|
|
color: 'gray',
|
|
},
|
|
});
|