UNPKG

rn-phone-input-field

Version:

A React Native phone number input component built from scratch, featuring a text input for number entry, a custom dropdown for selecting country codes, and validation logic using regex or country-specific rules. It supports formatting, localization, and s

12 lines (11 loc) 456 B
import React from 'react'; import { TextInputProps } from 'react-native'; import { type EachCountry } from '../constants/constants.d'; import { type PickerOpenRef } from './Picker.d'; interface Props { darkMode: boolean; onSelect: (value: EachCountry) => void; searchInputProps?: TextInputProps; } declare const CountryPickerModal: React.ForwardRefExoticComponent<Props & React.RefAttributes<PickerOpenRef>>; export default CountryPickerModal;