UNPKG

react-native-country-select

Version:

🌍 React Native country picker with flags, search, TypeScript, i18n, and offline support. Lightweight, customizable, and designed with a modern UI.

22 lines (20 loc) 712 B
import * as React from 'react'; import { ICountry } from './country'; import { IThemeProps } from './theme'; import { ICountrySelectStyle } from './countrySelectStyles'; import { ICountrySelectLanguages } from './countrySelectLanguages'; export interface ICountryItemProps { country: ICountry; theme?: IThemeProps; isSelected?: boolean; onSelect: (country: ICountry) => void; language: ICountrySelectLanguages; countrySelectStyle?: ICountrySelectStyle; customFlag?: ( country: ICountry ) => React.ReactElement | null | undefined; countryItemComponent?: (country: ICountry) => React.ReactElement; accessibilityLabel?: string; accessibilityHint?: string; allowFontScaling?: boolean; }