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
21 lines (17 loc) • 451 B
TypeScript
import type { EachCountry } from '../constants/constants.d';
interface PickerProps {
onSelect: (value: EachCountry) => void;
darkMode: boolean;
closeModal: () => void;
}
interface EachOptionProps {
onSelect?: (value: EachCountry) => void;
item: EachCountry;
index: number;
darkMode: boolean;
closeModal: () => void;
}
interface PickerOpenRef {
openModal: () => void;
}
export type { PickerProps, PickerOpenRef, EachOptionProps };