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