# react-native-device-number

> react-native-device-number is a helpful utility package for React Native developers, providing a seamless interface to retrieve the device's phone number within their applications. With this package, developers can easily access the device's phone number,

Latest version **1.0.9** (published 2024-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-device-number
pnpm add react-native-device-number
yarn add react-native-device-number
bun add react-native-device-number
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2024-02-25 |
| First published | 2021-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 29.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Md Rajib SK |
| Maintainers | mdrajibsk8, deepsoumya, ayand269 |
| Keywords | react-native, android, react-native-device-number, react-native-mobile-number, react-native-device-mobile-number, react-native-get-mobile-number, react-native-phone-number |

## Links

- npm: https://www.npmjs.com/package/react-native-device-number
- Repository: https://github.com/mdrajibsk8/react-native-device-number
- Homepage: https://github.com/mdrajibsk8/react-native-device-number#readme
- Issues: https://github.com/mdrajibsk8/react-native-device-number/issues
- npm.io page: https://npm.io/package/react-native-device-number

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2024-02-25
- 1.0.8 — 2024-02-25
- 1.0.7 — 2022-06-12
- 1.0.6 — 2022-06-11
- 1.0.5 — 2021-02-15
- 1.0.4 — 2021-02-15
- 1.0.3 — 2021-02-08
- 1.0.2 — 2021-02-08
- 1.0.1 — 2021-02-08
- 1.0.0 — 2021-02-08

## README

# react-native-device-number

![npm](https://img.shields.io/npm/dt/react-native-device-number?style=flat-square) ![NPM](https://img.shields.io/npm/l/react-native-device-number?style=flat-square) ![npm](https://img.shields.io/npm/v/react-native-device-number?style=flat-square) ![npm collaborators](https://img.shields.io/npm/collaborators/react-native-device-number?style=flat-square)

`This library only for Android`

# Installation
#### NPM
```shell
npm install react-native-device-number --save
```

#### YARN
```shell
yarn add react-native-device-number
```
**If you are getting any error, while using this package in RN version below 0.66. Then try you use v1.0.5**

## Changelog

#### Added support for gradlew 7, Android 12 & RN - 0.68.2
#### Added support for latest android version 13+

## Supporting the project

Maintaining this project takes time. To help allocate time, you can Buy Me a Coffee :wink:

<a href="https://www.buymeacoffee.com/mdrajibsk8" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" width="200" height="50" ></a>

## Video Link

`Please Subscribe to my channel, so don't miss on my future video`

<a href="https://www.youtube.com/watch?v=qRPx_9wnZ3k&ab_channel=Developer%27sSin" target="_blank"><img src="https://github.com/mdrajibsk8/React-Native-Push-Notification-Firebase7/blob/master/de1c91788be0d791135736995109272a.png?raw=true" alt="View Video" width="100" height="100" ></a>

## Usage

```javascript
import DeviceNumber from 'react-native-device-number';

DeviceNumber.get().then((res) => {
  console.log(res);
});
```

## Demo

<img src="https://raw.githubusercontent.com/mdrajibsk8/react-native-device-number/master/img.png?raw=true" alt="Developers' Sin" width="250" height="450" >

## About
react-native-device-number is a helpful utility package for React Native developers, providing a seamless interface to retrieve the device's phone number within their applications. With this package, developers can easily access the device's phone number, facilitating personalized user experiences and enabling features such as phone number verification, contact synchronization, and more. react-native-device-number abstracts away the complexity of interacting with device-specific APIs, offering a simple and consistent method for fetching the phone number across different platforms. Whether you're building a communication app, authentication system, or simply need to identify users uniquely, this package simplifies the process, enhancing the development workflow and improving app functionality.

---
_Source: https://npm.io/package/react-native-device-number · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
