We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I followed the steps, ran react-native run-android, but when I call NativeModules.SensorManager, it's undefined.
react-native run-android
NativeModules.SensorManager
Ideas?
import { DeviceEventEmitter, NativeModules } from 'react-native'; const mSensorManager = NativeModules.SensorManager; mSensorManager.startLightSensor(100); DeviceEventEmitter.addListener('LightSensor', ({ light }) => { console.log(light); });
The text was updated successfully, but these errors were encountered:
I fixed it with these steps:
#12 (comment)
maybe update the readme?
Sorry, something went wrong.
didn't solve the problem in my case
No branches or pull requests
I followed the steps, ran
react-native run-android
, but when I callNativeModules.SensorManager
, it's undefined.Ideas?
The text was updated successfully, but these errors were encountered: