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) 483 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCountries = void 0; var constants_1 = __importDefault(require("./constants")); var getCountries = function () { return Object.keys(constants_1.default).map(function (code) { return constants_1.default[code]; }); }; exports.getCountries = getCountries;