I'm using "react-native-contacts-wrapper" library for selecting contact from the contact list of device. But if there are two contact numbers are saved under one name then it is selecting second one, but I want to select the first one number. Can anybody please help me to do this. Thanks in advance. Here is my code :
...
import ContactsWrapper from "react-native-contacts-wrapper"
const ContactScreen = () => {
...
(async () => {
try {
let pNumber = await ContactsWrapper.getContact();
console.log(pNumber.phone)
} catch (error) {console.log(error)}
})()
}
...
};