Skip to content

TypeError: null is not an object (evaluating '_reactNativeContactsWrapper.default.getContact') In IOS #52

@aqib1604

Description

@aqib1604

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions