import React, { useCallback, useMemo } from 'react' import { StyleSheet, View } from 'react-native' import { useNavigation, useRoute, type RouteProp } from '@react-navigation/native' import type { NativeStackNavigationProp } from '@react-navigation/native-stack' import { SafeAreaView } from 'react-native-safe-area-context' import { useTranslation } from 'react-i18next' import { CustomNavbar } from '@tencentcloud/chat-uikit-react-native' import { ContactInfo, type ContactInfoData, type ContactInfoType, type FriendApplicationInfo } from '@tencentcloud/chat-uikit-react-native' interface UserInfo { userID: string nickname?: string avatarURL?: string signature?: string isFriend?: boolean allowType?: number } type RootStackParamList = { ContactInfo: { type?: ContactInfoType userInfo?: any friendInfo?: any applicationInfo?: any } ApplicationVerify: { type: 'friend' | 'group'; userInfo?: any; groupInfo?: any } Chat: { conversationID: string; type: 'C2C' | 'GROUP' } SetRemark: { friendInfo?: ContactInfoData } } type Nav = NativeStackNavigationProp type Rt = RouteProp export const ContactInfoScreen: React.FC = () => { const navigation = useNavigation