React-native-contacts: TypeError: undefined is not an object (evaluating '_reactNativeContacts.default.checkPermission')

Created on 26 Dec 2018  路  4Comments  路  Source: morenoh149/react-native-contacts

The contacts is perfectly working on android but in iOS it's throwing this error.

Most helpful comment

I'm also getting the same error on IOS any solution please..

All 4 comments

I'm also getting the same error on IOS any solution please..

Same problem on Android.

For ios you have to do little work in xcode.
Open xCode > click on libraries in left side> expand RCTContacts.xcodeproj> and find libRCTContacts.a file in it
now go to build phases tab by clicking the project name on the top. then drag this file(libRCTContacts.a) in the link binaries with libraries under the build phases tab . remove the already present libRCTContacts .
Make sure you have added a property "privacy-contacts usage description" in info.plist file
You are good to go
@nandhu143 @KonradIT

Thank you @abdulbasit1248

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uriva picture uriva  路  6Comments

duranmla picture duranmla  路  5Comments

DavidASix picture DavidASix  路  7Comments

msutyak picture msutyak  路  9Comments

suryaiiit picture suryaiiit  路  5Comments