react-native-contacts icon indicating copy to clipboard operation
react-native-contacts copied to clipboard

Cannot read property 'checkPermission' of undefined

Open azghibarta opened this issue 9 years ago • 4 comments

When I am trying to use the library on Android, the imported Contacts

import Contacts from "react-native-contacts";

is undefined. What I am doing wrong ?

azghibarta avatar Feb 01 '17 10:02 azghibarta

This is usually a linking problem.

npomfret avatar Feb 01 '17 15:02 npomfret

Yes, thanks for info. I've opened the Android app in Android Studio and the gradle sync fixed that.

azghibarta avatar Feb 01 '17 16:02 azghibarta

@npomfret

This is NOT a linking problem!

I have linked the lib but I still have this problem

$ react-native link react-native-contacts
Scanning folders for symlinks in /Users/user/app/node_modules (42ms)
rnpm-install info Platform 'ios' module react-native-contacts is already linked 
rnpm-install info Platform 'android' module react-native-contacts is already linked 
rnpm-install info Linking assets to ios project 
rnpm-install info Linking assets to android project 
rnpm-install info Assets have been successfully linked to your project

My very same question https://github.com/rt2zz/react-native-contacts/issues/316

wzup avatar Jul 27 '18 06:07 wzup

do you can try add IOS mannually, it's fix the error. https://github.com/rt2zz/react-native-contacts#manual

felipesousa avatar Jan 10 '19 19:01 felipesousa