A JavaScript phone number formatting library targeting React Native, based on an outdated (2015) snapshot of Google's libphonenumber. Version 1.0.3 is the only published version, with no updates since. The README notes it is not frequently synced with the latest libphonenumber, meaning validation and formatting may be stale. Offers APIs for E164, international, local formatting, validation, and country lookup. Compared to actively maintained alternatives like libphonenumber-js or react-native-phone-number-input, this package is effectively frozen and should be avoided for new projects.
npm install phoneformat-react-nativeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the default export and use the main formatting and validation functions with a US phone number.
Use an actively maintained library like libphonenumber-js or react-native-phone-number-input.
Ensure you are using this package only within a React Native project.
Import as default: import phoneFormat from 'phoneformat-react-native';
Switch to a maintained alternative.
Use default import: import phoneFormat from 'phoneformat-react-native'; then call phoneFormat.isValidNumber(...).
Run 'npm install phoneformat-react-native' and ensure React Native metro bundler is running.
Update the underlying library or switch to a current solution.
No dependency data recorded yet.