import { type OnRampCountry } from '@reown/appkit-common-react-native'; import { Pressable, FlexView, Spacing, Text, Icon, BorderRadius } from '@reown/appkit-ui-react-native'; import { StyleSheet, type StyleProp, type ViewStyle } from 'react-native'; import { SvgUri } from 'react-native-svg'; interface Props { onPress: (item: OnRampCountry) => void; item: OnRampCountry; selected: boolean; style?: StyleProp; testID?: string; } export const ITEM_HEIGHT = 60; export function Country({ onPress, item, selected, style, testID }: Props) { const handlePress = () => { onPress(item); }; return ( {item.flagImageUrl && SvgUri ? ( ) : null} {item.name} {item.countryCode} {selected ? ( ) : null} ); } const styles = StyleSheet.create({ container: { borderRadius: BorderRadius.s, height: ITEM_HEIGHT, justifyContent: 'center' }, imageContainer: { borderRadius: BorderRadius.full, overflow: 'hidden', marginRight: Spacing.xs }, textContainer: { flex: 1 }, checkmark: { marginRight: Spacing['2xs'] } });