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

75 lines (74 loc) 2.44 kB
{ "name": "rn-phone-input-field", "version": "1.2.0", "description": "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 styling, ensuring a seamless and accessible user experience without relying on external libraries.", "main": "dist/index.js", "types": "dist/index.d.ts", "directories": { "lib": "lib", "example": "example" }, "scripts": { "build": "tsc", "prepare": "npm run build", "test": "npm run build && jest --watchman=false", "lint": "eslint lib __tests__ --ext .ts,.tsx,.js", "format": "prettier --write \"lib/**/*.{ts,tsx}\"", "clean": "rimraf dist", "prebuild": "npm run clean" }, "repository": { "type": "git", "url": "git+https://github.com/sohantalukder/rn-phone-input-field.git" }, "keywords": [ "react-native", "ios", "android", "phone", "input", "dropdown", "phone-number-input", "phone-number-dropdown", "react-native-phone-input", "react-native-phone-number-input", "react-native-phone-number-dropdown", "react-native-phone-input-field", "react-native-phone-number-input-field", "react-native-phone-input-dropdown", "react-native-phone-number-input-dropdown", "react-native-phone-input-component", "react-native-phone-number-input-component", "rn-phone-number-field" ], "author": "Md. Sohan Talukder <mdtalukder.sohan@gmail.com> (https://github.com/sohantalukder)", "license": "MIT", "bugs": { "url": "https://github.com/sohantalukder/rn-phone-input-field/issues" }, "homepage": "https://github.com/sohantalukder/rn-phone-input-field#readme", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "peerDependencies": { "react": ">=16.8.0", "react-native": ">=0.60.0" }, "devDependencies": { "@types/jest": "^29.5.14", "@types/react": "^18.3.22", "@types/react-native": "^0.72.8", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "eslint": "^8.57.1", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^4.6.2", "jest": "^29.7.0", "prettier": "^2.8.8", "rimraf": "^3.0.2", "typescript": "^4.9.5" }, "files": [ "dist" ] }