1.0.1 • Published 4 years ago
react-native-contact-select v1.0.1
react-native-contact-select
react-native library for selecting contact from native android and iOS contacts picker.
Installation
yarn add react-native-contact-selector
npm install react-native-contact-selectRun pod install for iOS
pod install --project-directory=iosPermissions
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