How does React Native call the native address book like a native application?

scenario: in an application developed by React Native, you want to select a contact in the phone"s address book and get the contact"s name and mobile number. This choice is made by the user. The function of, React Native is to bring up the address book like a native application, display the contact list in the address book, and let the user choose.
as shown in figure

clipboard.png

is there a tripartite library to implement the above requirements? At least I haven"t found it yet.
if there is no three-party library, does React Native"s own API support it?
if there is neither tripartite library nor RN native API support. So what are we going to do to achieve this requirement? Do you have to write your own code for Android and iOS?

Mar.16,2021

found a library by yourself: react-native-contacts-wrapper
github address: https://github.com/LynxITDigi.

it can be used, but it doesn't meet the needs and needs to be modified on its own.
because it can only return one phone number and Email, but sometimes there may be multiple numbers and Email under a contact name. After testing, only the last of all numbers can be returned, and it needs to be modified if you want to realize the requirement of choosing your own number.

Menu