npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rn-international-phone-number

v0.14.0

Published

International mobile phone input component with mask for React Native

Readme

📚 Full documentation: astroonauta.github.io/react-native-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 – Optional onValidationChange callback
  • 📞 Line Type Detection – Tell MOBILE, FIXED_LINE, TOLL_FREE, VOIP and 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 HookusePhoneInput exposes all state + setters for fully custom UIs
  • 📱 Cross-Platform – iOS, Android and Web
  • 🧩 Integration – React Native CLI & Expo, functional & class components
  • 🈶 i18n – 33 languages (ISO 639-1 / ISO 639-2)
  • Accessibility – Screen reader friendly

Try it out

Live demo on Expo Snack →

Installation

npm install rn-international-phone-number react-native-safe-area-context
npx pod-install ios

For Web (React Native CLI / Expo font setup) and full configuration, see the Installation guide.

Quick start

import React, {useState} from 'react';
import {View} from 'react-native';
import PhoneInput, {ICountry} from 'rn-international-phone-number';

export default function App() {
  const [phone, setPhone] = useState('');
  const [country, setCountry] = useState<ICountry | null>(null);

  return (
    <View style={{flex: 1, padding: 24}}>
      <PhoneInput
        value={phone}
        onChangePhoneNumber={setPhone}
        country={country}
        onChangeCountry={setCountry}
      />
    </View>
  );
}

Documentation

| Topic | Link | | --- | --- | | Installation | astroonauta.github.io/.../installation | | Quick Start | astroonauta.github.io/.../quick-start | | Props API (51 props) | astroonauta.github.io/.../api/props | | Ref API | astroonauta.github.io/.../api/ref | | usePhoneInput hook | astroonauta.github.io/.../api/hooks | | Utility functions | astroonauta.github.io/.../api/utilities | | Theming & styles | astroonauta.github.io/.../guides/theming | | i18n (33 languages) | astroonauta.github.io/.../guides/i18n | | Accessibility | astroonauta.github.io/.../guides/accessibility | | Testing | astroonauta.github.io/.../guides/testing | | React Hook Form / Formik / TanStack Form | astroonauta.github.io/.../examples |

Contributing

Fork the repo, fix or improve, and open a PR. See the Contributing guide.

License

ISC