Hi Guys,
I have faced below error on iOS. i am using react native 61 version.
Error: TypeError: null is not an object (evaluating '_reactNativeContactsWrapper.default.getContact')
It's working fine on Android but in iOS, it's showing error.
Below is my code:
ContactsWrapper.getContact()
.then((contact) => {
console.log("phone number",contact.phone);
// console.log("Contact List",contact);
this.setState({phone:contact.phone});
})
.catch((error) => {
console.log("ERROR CODE: ", error.code);
console.log("ERROR MESSAGE: ", error.message);
});
can you please me to resolve my issue for IOS?
Thanks