Contacts.getContactsAsync() ignore my contactQuery critera (email)

#1

This code is returning all contacts, including those without an email address.

      const payload = await Contacts.getContactsAsync({
        fields: [Contacts.Fields.Emails],
        pageSize,
        pageOffset,
      });

I was expecting it to filter out contacts without an email. Obviously, I can do that on my side but it seems inefficient. Any ideas? Am I misunderstanding the documentation?

https://docs.expo.io/versions/latest/sdk/contacts

1 Like
https://forums.expo.io/t/contacts-getcontactsasync-ignore-my-contactquery-critera-email/15168
closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.