Description
react-native-contacts is a React Native library for reading a device's contacts from JavaScript. Its main method, getAll, can take a long time when the contacts list is large, so the README recommends calling it before the data is needed and caching the results. The README shows the fields a contact record holds, such as name, company, job title, phone numbers and e-mail addresses. On Android you must request the contacts permission from the user before you call the library, and the README has a section on the Android permissions to declare. You install it with npm or yarn. Since version 7.0.0 the library supports autolinking, so on iOS you no longer need the pod line in the Podfile. If you linked it manually before, the README gives steps to upgrade. For React Native 0.60 and newer you do not need to link it by hand, though the README still describes the iOS and Android steps for that version. Questions are best asked on Stack Overflow rather than the issue tracker, and contributions follow CONTRIBUTING.md.…
Highlights
- Read device contacts from React Native
- Autolinking since version 7.0.0
- Android permission handling
- Install with npm or yarn
Ratings & Reviews
No ratings yet
Be the first to rate React Native Contacts.
People also visit
React Native Contacts FAQ
What does react-native-contacts do?
It gives a React Native app access to the contacts stored on the device.
How do I install it?
Install it with npm or yarn. Since version 7.0.0 it autolinks, so you do not need the pod line in the Podfile on iOS.
Does Android need permission?
Yes. The README says you must request the contacts permission before reading contacts.
Why should I cache getAll?
The README says getAll is database intensive and can take a long time on a large contacts list, so it suggests caching the result.
What are the best React Native Contacts alternatives?
Popular alternatives to React Native Contacts include React Native Config, React Native Sensitive Info and React Native Inappbrowser. See all React Native Contacts alternatives
















