UNPKG

react-native-country-select

Version:

🌍 A lightweight and customizable country picker for React Native with modern UI, flags, search engine, and i18n support. Includes TypeScript types, offline support and no dependencies.

58 lines (44 loc) 1.35 kB
import * as React from 'react'; import { ICountry, ICountryCca2, ICountryItemProps, ICountrySelectProps, ICountrySelectStyle, ICountrySelectLanguages, } from './interface'; declare function getAllCountries(): ICountry[]; declare function getCountryByCca2(cca2: string): ICountry | undefined; declare function getCountryByCca3(cca3: string): ICountry | undefined; declare function getCountriesByCallingCode( callingCode: string, ): ICountry[] | undefined; declare function getCountriesByName( name: string, language: ICountrySelectLanguages, ): ICountry[] | undefined; declare function getCountriesByRegion(region: string): ICountry[] | undefined; declare function getCountriesBySubregion( subregion: string, ): ICountry[] | undefined; declare function getContriesDependents(cca2: string): ICountry[] | undefined; declare function getCountriesIndependents(): ICountry[] | undefined; declare const CountrySelect: React.FC<ICountrySelectProps>; export default CountrySelect; export { ICountry, ICountryCca2, ICountryItemProps, ICountrySelectProps, ICountrySelectStyle, ICountrySelectLanguages, getAllCountries, getCountryByCca2, getCountryByCca3, getCountriesByCallingCode, getCountriesByName, getCountriesByRegion, getCountriesBySubregion, getContriesDependents, getCountriesIndependents, };