# react-native-contacts-android

> receiving contact from the phonebook

Latest version **1.1.3** (published 2016-08-25) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2016-08-25 |
| First published | 2016-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Eugene Magdin |
| Maintainers | jenya26 |
| Keywords | react-native, react-native-contacts |

## Links

- npm: https://www.npmjs.com/package/react-native-contacts-android
- Repository: https://github.com/Jenya26/react-native-contacts-android
- Homepage: https://github.com/Jenya26/react-native-contacts-android#readme
- Issues: https://github.com/Jenya26/react-native-contacts-android/issues
- npm.io page: https://npm.io/package/react-native-contacts-android

## Recent versions

- 1.1.3 (latest) — 2016-08-25
- 1.1.2 — 2016-08-18
- 1.1.1 — 2016-08-15
- 1.1.0 — 2016-08-15
- 1.0.2 — 2016-07-28
- 1.0.1 — 2016-07-27
- 1.0.0 — 2016-07-26

## README

# react-native-contacts-android 
receiving contact from the phonebook

## Install
* npm install react-native-contacts-android --save
* In `android/setting.gradle`
```gradle
    ...
    include ':react-native-contacts-android'
    project(':react-native-contacts-android').projectDir = new File(settingsDir, '../node_modules/react-native-contacts-android')
```

* In `android/app/build.gradle`
```gradle
...
dependencies {
    ...
    compile project(':react-native-contacts-android')
}
```

* register module (in android/app/src/main/java/[your-app-namespace]/MainActivity.java)
```java
import ru.getintime.react_native_contacts_android.ReactNativeSelectContactsPackage; // <------ add import

public class MainApplication extends Application implements ReactApplication  {

  @Override
    protected List<ReactPackage> getPackages() {
      ......
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          ......
          new ReactNativeSelectContactsPackage()
      );
    }
}
```

* add Contacts permission (in android/app/src/main/AndroidManifest.xml)
```xml
...
  <uses-permission android:name="android.permission.READ_CONTACTS" />
...
```
## Usage Example

```js
import SelectContacts from 'react-native-contacts-android';

SelectContacts.picker((contact) => {

  ...

})
```

## Contact

```js
{
  "id": "2",
  "phones": [
    "id": "50",
    "number": "12344234"
  ]
}
```

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