UNPKG

react-native-country-codes-picker

Version:
37 lines (32 loc) 848 B
import {ViewStyle, TextStyle} from "react-native"; export interface ItemTemplateProps { item: CountryItem, name: string, style?: Style, onPress?: (arg: any) => any, } export interface ListHeaderComponentProps { countries: CountryItem[], lang: string, onPress: (item: CountryItem) => void, } export interface CountryItem { name: {[key: string]: string}, dial_code: string, code: string, flag: string } export interface Style { backdrop?: ViewStyle, modal?: ViewStyle, line?: ViewStyle, searchMessageText?: TextStyle, itemsList?: ViewStyle, modalInner?: ViewStyle, countryMessageContainer?: ViewStyle, textInput?: TextStyle, countryButtonStyles?: ViewStyle, flag?: TextStyle, dialCode?: TextStyle, countryName?: TextStyle }