Open Source · 2024
React Native Phone Input
Phone number field for React Native: country search, emoji flags, two layouts, and validation through Google libphonenumber.
- Project Year
- 2024
- Public Links
- 2
The problem
A phone field looks trivial until it ships internationally: country codes, search, flags on two platforms, and a validation rule that differs per country.
Solution approach
- Built the field around Google libphonenumber so validation follows each country's numbering rules.
- Shipped two layouts and a documented style surface so the component fits existing design systems without forking.
- Typed the public API end to end and kept the country list searchable with emoji flags on both iOS and Android.
The outcome
- Around 3,400 npm downloads in the 30 days to August 2026, on version 3.8.0.
- Five forks on GitHub from teams adapting the component for their own checkout and onboarding flows.
Tech stack
React NativeTypeScriptlibphonenumber