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

expo-phone-number-hint

v0.4.1

Published

Expo module wrapping Google's Phone Number Hint API, provides a frictionless way to show a user's (SIM-based) phone numbers as a hint.

Readme

expo-phone-number-hint

npm CI License

Provides a frictionless way to show a user's (SIM-based) phone numbers as a hint, powered by Google's Phone Number Hint API.

demo

Installation

npx expo install expo-phone-number-hint

Usage

import {
  isAvailableAsync,
  showPhoneNumberHintAsync,
} from "expo-phone-number-hint";

const isAvailable = await isAvailableAsync();
if (isAvailable) {
  const phoneNumber = await showPhoneNumberHintAsync();

  if (phoneNumber) {
    // user selected a number
    console.log(phoneNumber); // "+919876543210"
  } else {
    // user dismissed the picker
  }
}

API

isAvailableAsync()

function isAvailableAsync(): Promise<boolean>

Check whether the Phone Number Hint API can be used on this device. Never throws.

showPhoneNumberHintAsync()

function showPhoneNumberHintAsync(): Promise<string | null>

Show the system phone number picker.

Returns the selected phone number in E.164 format (e.g. "+14155551234"), or null if the user dismissed the picker.

Throws an error with a code property on failure. See Handling errors below.

Handling errors

All known codes are exported as PhoneNumberHintErrorCodes.

| Code | Meaning | |------|---------| | ERR_PLAY_SERVICES_UNAVAILABLE | Google Play Services is unavailable | | ERR_NO_HINT_AVAILABLE | No phone number hints available | | ERR_NO_ACTIVITY | No foreground activity | | ERR_LAUNCH_FAILED | Failed to launch the picker | | ERR_EXTRACTION_FAILED | Failed to extract phone number from result | | ERR_ALREADY_IN_PROGRESS | Another request is already showing the picker | | ERR_MODULE_DESTROYED | Module destroyed before result was delivered | | ERR_UNAVAILABLE | Called on a platform where the picker is not available (iOS or web) |

Play Services Auth version

Defaults to com.google.android.gms:play-services-auth:21.5.1. To override, set playServicesAuthVersion in your root android/build.gradle:

ext {
  playServicesAuthVersion = "21.4.0"
}