import React, { useEffect, useState } from 'react' import { View, Text, FlatList, StyleSheet, TouchableOpacity, SafeAreaView, TextInput, Alert, } from 'react-native' import { useNavigation } from '@react-navigation/native' import type { NativeStackNavigationProp } from '@react-navigation/native-stack' import type { RootStackParams } from '../../navigation/types' import { demoApi, type UserProfile } from '../../api/demo' import { load, save, K } from '../../utils/storage' type Nav = NativeStackNavigationProp function ContactRow({ user, onPress }: { user: UserProfile; onPress(): void }) { const letter = (user.nickname || user.userId).charAt(0).toUpperCase() return ( {letter} {user.nickname} @{user.userId} ) } export default function ContactsScreen() { const navigation = useNavigation