# react-native-whatsapp-contacts

> A React Native Package to get WhatsApp Contacts on Android.

Latest version **1.0.3** (published 2018-06-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install react-native-whatsapp-contacts
pnpm add react-native-whatsapp-contacts
yarn add react-native-whatsapp-contacts
bun add react-native-whatsapp-contacts
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-06-02 |
| First published | 2018-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ayshiff |
| Maintainers | ayshiff |
| Keywords | react-native |

## Links

- npm: https://www.npmjs.com/package/react-native-whatsapp-contacts
- npm.io page: https://npm.io/package/react-native-whatsapp-contacts

## Recent versions

- 1.0.3 (latest) — 2018-06-02
- 1.0.1 — 2018-06-01

## README

# react-native-whatsapp-contacts

## Getting started

`$ npm install react-native-whatsapp-contacts --save`

### Mostly automatic installation

`$ react-native link react-native-whatsapp-contacts`

### Manual installation

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.RNReactNativeWhatsappContactsPackage;` to the imports at the top of the file
  - Add `new RNReactNativeWhatsappContactsPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-react-native-whatsapp-contacts'
  	project(':react-native-react-native-whatsapp-contacts').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-react-native-whatsapp-contacts/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':react-native-react-native-whatsapp-contacts')
  	```


## Usage
```javascript
import RNReactNativeWhatsappContacts from 'react-native-whatsapp-contacts';

// TODO: What to do with the module?
RNReactNativeWhatsappContacts;
```

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