react-native-international-phone-number
Version:
International mobile phone input component with mask for React Native
18 lines (15 loc) • 452 B
text/typescript
import { TextInput } from 'react-native';
import { ICountry } from './country';
import { PhoneInputProps } from './phoneInputProps';
export interface IPhoneInputRef extends TextInput {
props: PhoneInputProps;
onFocus: () => void;
focus: () => void;
getValue: () => string;
value: string;
getFullPhoneNumber: () => string;
fullPhoneNumber: string;
getSelectedCountry: () => ICountry;
selectedCountry: ICountry;
isValid: boolean;
}