import React from 'react' import { Image, Pressable, StyleSheet } from 'react-native' import { useNavigation } from '@react-navigation/native' export interface Props { uri: string id: string } const Avatar: React.FC = ({ uri, id }) => { const navigation = useNavigation() // Need to fix go back root return ( { navigation.navigate('Account', { id: id }) }} > ) } const styles = StyleSheet.create({ avatar: { width: 50, height: 50, marginRight: 8 }, image: { width: '100%', height: '100%' } }) export default Avatar