Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noble.on is not a function #42

Open
mosesmc52 opened this issue Mar 27, 2017 · 2 comments
Open

noble.on is not a function #42

mosesmc52 opened this issue Mar 27, 2017 · 2 comments

Comments

@mosesmc52
Copy link

mosesmc52 commented Mar 27, 2017

So I'm trying to run the advertisement_discovery example on my iphone, but I see the error

noble.on is not a function, noble.on is undefined error. Is there any idea why this error is occurring.

Thanks

@nielsswinkels
Copy link

nielsswinkels commented May 31, 2017

Double check that the linking went right. I had the issue on android, and figured out the linking went wrong, because it was missing new RNBLEPackage() in the MainApplication.java. I'm not sure what the equivalent is in iOS.

And then use import noble from 'react-native-ble'; in your index.ios.js that should work.

@mosesmc52
Copy link
Author

I solved this issue a month ago. Including the missing RNBLEPackage in MainApplication.java was the solution.

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

No branches or pull requests

2 participants