Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 984 Bytes

README.md

File metadata and controls

45 lines (35 loc) · 984 Bytes

react-native-contact-select

react-native library for selecting contact from native android and iOS contacts picker.

Installation

yarn add react-native-contact-select

or

npm install react-native-contact-select

Run pod install for iOS

pod install --project-directory=ios

Permissions

iOS

For iOS you don't need to handle permissions because native CNContactPickerViewController is being used.

Android

For android add following to your AndroidManifest.xml:

<uses-permission android:name="android.permission.READ_CONTACTS" />

Permission will automatically be requested when you call for selectContact method.

Usage

import { selectContact } from 'react-native-contact-select';

selectContact().then(contact => {
  // do something with contact
}).catch(error => {
  // handle error
})

License

MIT

Project bootstrapped with react-native-builder-bob