react-native-contact-select
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i react-native-contact-select

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

31.8 kB

Total Files

25

Last publish

Collaborators

  • danilodev