How to access contacts in your Expo app, in short
Use expo-contacts. Install it with npx expo install expo-contacts, add it to the plugins array of app.json with a contactsPermission message, then pick one of two paths. To let the user choose a single person (to invite, share with, or pre-fill a form), call Contact.presentPicker(), which opens the native picker and resolves to the chosen contact or null. To read many contacts, call Contacts.requestPermissionsAsync() first, then Contact.getAllDetails() with the exact fields you need.
Contacts are some of the most sensitive data on a phone, so the code is the easy part. The parts that decide whether you pass App Review are the purpose string, whether you asked for full access when a picker would do, and what you do with the data afterwards. This guide covers all three.
Step 1: Install expo-contacts and set the permission message
- Install: npx expo install expo-contacts. Using expo install picks the version that matches your SDK.
- Add the config plugin to app.json: "plugins": [["expo-contacts", { "contactsPermission": "Allow $(PRODUCT_NAME) to access your contacts so you can invite friends." }]]. The contactsPermission option sets the iOS NSContactsUsageDescription message.
- Rebuild. The plugin configures properties that cannot change at runtime, so a new development or production build is needed for the message to take effect. The module is included in Expo Go, so you can try the API there first.
- Android needs nothing extra. The library automatically adds the READ_CONTACTS and WRITE_CONTACTS permissions to your app.
Apple's documentation says NSContactsUsageDescription is required if your app uses APIs that access the user's contacts, and App Review guideline 5.1.1(ii) asks that purpose strings clearly and completely describe how you use the data. The plugin's default message, Allow $(PRODUCT_NAME) to access your contacts, says nothing about why. Our take: always replace it with a sentence that names the feature, such as so you can find friends who already use the app or so you can split a bill with someone in your contacts. A vague purpose string is an easy rejection to avoid.
If your project manages the native ios and android folders by hand instead of using config plugins, add the NSContactsUsageDescription key to ios/[app]/Info.plist and the two uses-permission lines to AndroidManifest.xml yourself. Our [guide to requesting permissions in Expo](/blog/how-to-request-permissions-in-your-expo-app) covers how the plugins write these entries during a build.
Step 2: Prefer the picker when the user only needs one contact
Most features that touch contacts really need one person: send this invite to someone, share this list with someone, fill in this recipient. For those, the picker is the right tool. Call const contact = await Contact.presentPicker(). It opens the native contact picker and resolves to the selected Contact, or null if the user cancelled. Read what you need from it with contact.getDetails([ContactField.GIVEN_NAME, ContactField.PHONES]).
This lines up with App Review guideline 5.1.1(iii), which says that where possible you should use the out-of-process picker or a share sheet rather than requesting full access to protected resources like Contacts. Apple's documentation for the iOS contact picker also notes that an app using it does not need access to the user's contacts, the user is not prompted for permission, and the app only gets the user's final selection. That is a better experience and a smaller privacy footprint.
Two related helpers are worth knowing. Contact.presentCreateForm() opens the native Create Contact form, optionally pre-filled, and resolves to true if a contact was created, which is the clean way to offer Save to Contacts on a profile screen. contact.editWithForm() opens the native editor for an existing contact.
Step 3: When you need the address book, ask first
Some features genuinely need more than one contact, like showing which of the user's contacts already use your app. For those, request permission at the moment the user taps the feature, not on launch: const { status, accessPrivileges } = await Contacts.requestPermissionsAsync(). Use Contacts.getPermissionsAsync() to check the current state without prompting.
What accessPrivileges tells you
| Value | Meaning | What to do |
|---|---|---|
| 'all' | The user granted access to the whole contact library | Read what you need with getAllDetails |
| 'limited' | The user granted access only to selected contacts (iOS 18+) | Work with the subset, and offer a way to add more |
| 'none' | No access | Fall back to the picker or manual entry |
Limited access is the part older tutorials miss. On iOS 18 and later, the user can share only some contacts. Your queries then return just that subset, and you should design for it rather than treat it as an error. Two tools help: Contact.presentAccessPicker() presents a system dialog to request access to specific contacts, and the ContactAccessButton component (iOS 18+, check ContactAccessButton.isAvailable()) shows matches for a search query among contacts the app cannot see yet, so the user can grant access to the one they are looking for in a single tap.
Guideline 5.1.1(iv) also asks you to respect the user's choice and, where possible, offer an alternative when they decline. For contacts that usually means a text field where the user types a phone number or email, plus the picker.
Step 4: Read only the fields you need
Contact.getAllDetails(fields, options) is the optimized way to read in bulk, because it returns plain detail objects instead of full Contact instances. Pass only the fields you will use, for example [ContactField.FULL_NAME, ContactField.PHONES], and page through results with limit and offset rather than loading the whole address book at once.
Query options for getAll and getAllDetails
| Option | What it does |
|---|---|
| limit | Maximum number of contacts to return. If omitted, all matching contacts are returned |
| offset | Number of contacts to skip, for pagination |
| name | Only return contacts whose name contains this string |
| sortOrder | ContactsSortOrder.GivenName, FamilyName, UserDefault or None |
| rawContacts | iOS only. Include raw contact data instead of unified contacts (default false) |
The reference's own infinite scroll example is a good pattern: a FlatList whose onEndReached calls getAllDetails with limit 20 and offset set to the number of contacts already loaded. Contact.hasAny() tells you whether the address book has any contacts at all, which is useful for an empty state.
Writing is just as direct. Contact.create({ givenName, familyName, phones }) adds a contact. contact.patch() applies a partial update and ignores undefined fields, but note that lists like phones and emails are replaced entirely if you pass them, so spread the existing list first. contact.update() overwrites the whole contact. For anything a user should review first, the native forms from Step 2 are friendlier than writing silently.
If the user edits contacts in the Contacts app while yours is open, Contacts.addContactsChangeListener() can tell you. The reference notes that on iOS the event fires immediately, while on Android it may be delayed by 5 to 7 seconds and can fire twice, so it suggests also refreshing when the app returns to the foreground.
The App Review rules that apply to contact data
Getting access is half of it. Guideline 5.1.2 has two clauses written specifically about contacts, and they shape what your feature is allowed to do:
- 5.1.2(iv): do not use information from Contacts to build a contact database for your own use or for sale or distribution to third parties. Uploading the whole address book to your server to grow a marketing list is exactly what this forbids.
- 5.1.2(v): do not contact people using information from the user's Contacts except at the user's explicit initiative on an individualized basis. Do not include a Select All option or default the selection to all contacts, and show the user how the message will appear to the recipient before sending, including what it says and who it appears to be from.
- 5.1.1(ii): paid functionality must not depend on granting access to this data. Do not lock a feature someone paid for behind the contacts prompt.
Contacts also count as collected data for your App Privacy answers if they leave the device. Our walkthrough of [App Privacy details in App Store Connect](/blog/app-privacy-details-app-store-connect) covers how to declare it, and our breakdowns of [guideline 5.1.1](/blog/app-store-rejection-guideline-5-1-1) and [guideline 5.1.2](/blog/app-store-rejection-guideline-5-1-2) cover what reviewers flag and how to respond.
Our take: design invite flows so that the user picks each person and sees the message before it goes out, and keep contact matching on the device unless you truly need a server. That covers the rules above and is the version of the feature users trust.
Have Claude Code build it for you
Open your project in the Claude Code desktop app and be explicit, because AI-written code often reaches for the old getContactsAsync call, requests full access on launch, loads the entire address book with every field, and adds a Select All button to the invite screen. Each of those is either a crash on the current SDK, a worse experience, or a review risk. A prompt that avoids them:
Then add a line to your [CLAUDE.md](/blog/claude-md-for-expo-apps) such as "Contacts access goes through src/lib/invite.ts; picker first, no bulk upload, no Select All" so a later session keeps the guardrails. Test the prompt and the picker on a real iPhone, including what happens when you deny access and when you grant only a few contacts. Our guide to [debugging an Expo app on a device](/blog/how-to-debug-expo-app-on-device) covers getting builds onto a phone.
The short version
To access contacts in your Expo app: install expo-contacts, set a specific contactsPermission message in the config plugin, and use Contact.presentPicker() whenever the user only needs one person. When you truly need the address book, request permission at the moment of use, handle limited access on iOS 18+, and read only the fields you need with getAllDetails. Never build a contact database, never Select All, and always show the user an invite before it is sent.
If you are building your first iOS app with Claude Code and Expo and want a second pair of eyes on it before App Review, bring it to App Store Launch Club. Members share their builds for feedback, and the [curriculum](/curriculum) covers the full path from first build to first users. Join at applaunchclub.co for $9 a month.
Short, practical drops on app ideas, validating fast, store listings, and passing app review. No spam, unsubscribe anytime.
Frequently asked questions
How do I access contacts in an Expo app?
Install expo-contacts with npx expo install expo-contacts and add its config plugin with a contactsPermission message. Then either call Contact.presentPicker() to let the user choose one contact, or call Contacts.requestPermissionsAsync() and read contacts with Contact.getAllDetails().
How do I set NSContactsUsageDescription in Expo?
Add 'expo-contacts' to the plugins array of app.json with a contactsPermission option. The plugin writes that string to NSContactsUsageDescription in Info.plist when you build. Make it explain the specific feature that uses contacts.
Do I need contacts permission to use the contact picker?
Apple's documentation for the iOS contact picker says an app using it does not need access to the user's contacts and the user is not prompted for permission. The app only receives the contact the user selects, which is why App Review prefers the picker over full access where possible.
Why does getContactsAsync throw an error?
In the current SDK, the function-style methods on the root expo-contacts import are deprecated and throw at runtime. Use the class-based API, such as Contact.getAll() or Contact.getAllDetails(), or import the old methods from expo-contacts/legacy.
What does limited contacts access mean on iOS 18?
The user can grant your app access to only selected contacts. requestPermissionsAsync then reports accessPrivileges as 'limited', and your queries return only that subset. Use Contact.presentAccessPicker() or ContactAccessButton to let the user share more.
Can I upload a user's contacts to my server?
App Review guideline 5.1.2(iv) forbids using Contacts information to build a contact database for your own use or for sale or distribution. If contact data leaves the device for a feature, get the user's permission, declare it in your App Privacy details, and use it only for that feature.
Can my invite screen have a Select All button?
No. Guideline 5.1.2(v) says not to include a Select All option or default the selection to all contacts, and to show the user how the message will appear to the recipient before it is sent.
Last reviewed by David on October 28, 2026

