Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

TypeError: Undefined is not and object(Evaluating 'nativeModule.addListener). #14

Open
omi10859 opened this issue Nov 6, 2018 · 1 comment

Comments

@omi10859
Copy link

omi10859 commented Nov 6, 2018

code causing error:

componentDidMount(){
Proximity.addListener(this._proximityListener);
 }
_proximityListener(data) {
    console.log(data);
}
componentWillUnmount() {
  Proximity.removeListener(this._proximityListener);
}
@embirico
Copy link

This type of error often means you need to properly link the library and then rebuild in XCode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants