UNPKG

@artmajeur/react-native-paper-phone-number-input

Version:

A performant phone number input component for react-native-paper with country picker

21 lines 710 B
import { type CountryCode } from 'libphonenumber-js'; export declare const getCountryByCode: (code?: string) => { name: string; flag: string; dialCode: string; length: number; }; export declare const getDialCodeByCode: (code?: string) => string; export declare const extractPhoneInfo: (input: string) => { error: string; dialCode?: undefined; nationalNumber?: undefined; code?: undefined; } | { dialCode: import("libphonenumber-js").CountryCallingCode; nationalNumber: string; code: CountryCode | undefined; error?: undefined; }; export declare const liveFormatPhoneNumber: (input: string, countryCode: CountryCode) => string; //# sourceMappingURL=utils.d.ts.map