rn-international-phone-number
International mobile phone input for React Native, Expo and React Native Web. Country dial code selector, flag picker, auto phone mask, validation, line-type detection, smart paste, and i18n for 33 languages.

Featuresโ
- ๐ Phone Input Mask โ Auto-formatting per selected country
- โ
Validation โ Check phone number, with optional
onValidationChangecallback - ๐ Line Type Detection โ Tell
MOBILE,FIXED_LINE,TOLL_FREE,VOIPand more apart - ๐ Smart Paste โ Paste an E.164 number and the country switches automatically
- ๐ก Dynamic Placeholder โ Country-aware example number as placeholder (
placeholderType="number") - ๐ช Headless Hook โ
usePhoneInputexposes all state + setters for fully custom UIs - ๐ฑ Cross-Platform โ Works seamlessly on iOS, Android and Web
- ๐งฉ Flexible Integration โ Supports both React Native CLI & Expo
- ๐จโ๐ป Component Versatility โ Works with functional & class components
- ๐จ Modern UI โ Custom component with sleek design
- ๐ถ Internationalization โ Supports 33 languages (ISO 639-1 and ISO 639-2)
- ๐งช Test Ready โ Smooth testing integration
- โฟ Accessibility โ Accessibility standards for screen readers
Try it outโ
Next stepsโ
Support the projectโ
If this library saves you time, consider buying me a coffee โ.