import {View, Text, Image, Pressable} from 'react-native'; import React, {FC} from 'react'; import styles from './styles'; import {RFValue} from 'react-native-responsive-fontsize'; import {Avatar} from 'react-native-paper'; import Animated, {ZoomIn} from 'react-native-reanimated'; import { NavigationProp, ParamListBase, useNavigation, } from '@react-navigation/native'; interface props { item: any; index: number; } const SingleUser: FC = ({item, index}) => { const navigation: NavigationProp = useNavigation(); const goToScreen = () => { navigation.navigate('UserProfile', { thumbnail: item?.picture.large, index: index, }); }; return ( goToScreen()}> {item.name.title + ' ' + item?.name?.first + ' ' + item?.name.last} {item?.email} ); }; export default SingleUser;