-
Notifications
You must be signed in to change notification settings - Fork 74
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
M sensor manager not loading #12
Comments
I also received this issue after using the npm installer. I have not worked out how to get it going yet. |
I have looked at the whole require('NativeModules') object and it seems like the module is not there. You said that you received this issue when using npm... Is there a different way of installing it? Thx. |
And if you managed to make it work (even without nativeModules) could you please upload and send me your project? I might be able to do something with it.... |
Hey, I'm having the same problem. Can someone help please |
I will look into it as soon as I have time. It's probably due to an update or so... |
I just found a solution. If you installed it using 'rnpm link' you should do one more thing, and that is to register the modules in the MainApplication.java file under android/src/main/java/com/...
|
rnpm used to take care about that... |
It still does I think, but it changes the wrong file. |
I had to use rnpm to get this to work however the suggested fix does not work with npm (at least last time I tried). |
This solution doesn't work for me. This is what my MainActivity.java file looks like (moonphase is my app's name)
I'm not using |
similar issues here, followed the manual instructions and getting the "error: method does not override or implement a method from a supertype", and not working if I remove the override hope some one find what's the issue 👍 android/settings.gradle
android/app/build.gradle
MainActivity.jaja
index.android.js
|
@mileung @cristianszwarc The manual modification should be in |
After manual setup does not create build why ? |
Apparently, I've followed your installation steps using rnpm and after pasting sensor manager + accelerometer code to my blank new project an error was caused because
require('NativeModules').SensorManager;
did not load anything. Any reason why?'undefined is not an object(evaluating mSensorManager.startAccelerometer)'
The text was updated successfully, but these errors were encountered: