Overview of rn-international-phone-number
masterrn-international-phone-number is an international mobile phone input component designed for React Native, Expo, and React Native Web. It provides a complete user experience for phone number entry, including a country dial code selector, flag picker, and automatic phone number masking.
Key capabilities include:
- Auto-formatting: Applies a phone mask based on the selected country.
- Validation: Validates phone numbers with an optional
onValidationChangecallback. - Line Type Detection: Identifies if a number is
MOBILE,FIXED_LINE,TOLL_FREE,VOIP, etc. - Smart Paste: Automatically switches the country when an E.164 formatted number is pasted.
- Headless UI: Provides the
usePhoneInputhook for developers who want to build completely custom UIs using the library's logic. - Cross-Platform: Fully compatible with iOS, Android, and Web.