react-native-contact
This is simple wrapper that return an array of contacts which can be handled by the developer for their specific use.
Installation
yarn add react-native-contact
For React Native => 0.59 only:
react-native link react-native-contact
Make sure your manifest files includes permission to read contacts
<uses-permission android:name="android.permission.READ_CONTACTS" />
API
Methods
selectContact(): Promise<Contact | null>;
selectContactPhone(): Promise<ContactPhoneSelection | null>;
selectContactEmail(): Promise<ContactEmailSelection | null>;
selectContactPostalAddress(): Promise<ContactPostalAddressSelection | null>;
These methods all will return an array. Which in turn can be handled by the developer for their specific need.
Types
Example
; { return ; }