import React from 'react'; import { Text, View, FlatList, TouchableOpacity, Linking } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { getStyles } from './customers.styles'; import { MOCK_CUSTOMERS } from '../../mock-data/customers'; import { useTheme } from '../../theme'; export const CustomersScreen = () => { const { theme: colors } = useTheme(); const styles = getStyles(colors); const handleCall = (phone: string) => { Linking.openURL(`tel:${phone}`).catch(() => {}); }; const handleEmail = (email: string) => { Linking.openURL(`mailto:${email}`).catch(() => {}); }; return ( item.id} contentContainerStyle={styles.listContent} renderItem={({ item }) => ( {item.name} Contact: {item.contactPerson} {item.activeProjects} active projects handleCall(item.phone)} > Call handleEmail(item.email)} > Email )} /> ); };