import React from "react"; import { Pressable, Text } from "react-native"; import type { CountryItem } from "../../types"; import { styles } from "./CountryPickerBottomSheet.styles"; interface CountryRowProps { item: CountryItem; isSelected: boolean; onPress: (country: CountryItem) => void; } const CountryRowComponent = ({ item, isSelected, onPress }: CountryRowProps) => { return ( onPress(item)} style={[styles.countryRow, isSelected && styles.countryRowSelected]} > {item.flag} {item.name} {item.dialCode} ); }; export const CountryRow = React.memo(CountryRowComponent);