'Access phone contacts to see who already has an account

I am trying to implement a feature in my app, where users can see a contact list of which contacts (based on mobile number) already has an account on our app.

This feature can be found in all social media and banking apps.

Can someone guide on how to do so?



Solution 1:[1]

You can use https://www.npmjs.com/package/react-native-contacts to get all the contact details, then pass this array to your backend service to find the accounts with the phone number, then you can display them.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Amit Dutta