I’m using Expo SDK 30 and can successfully retrieve and display contacts on iOS. But on Android it doesn’t work.
My code is shown in this snack (relevant code starts at 397):
On Android, pushing the Import button successfully asks the user for permission, and makes it to the console.log statement “sortType”. But it stops there, so seems to fail at the line:
await Expo.Contacts.getContactsAsync
I read this similar thread but it was for Expo 29 and is now closed with no solution.
Hopefully I’ve provided enough information that someone with experience with this can help.
I found that removing sort: sortType from getContactsAsync resolved the problem on Android.
I am trying to sort by LastName as shown below, and the Expo docs say it should work for both Android and iOS (green checkmark for each), but it doesn’t work on Android.