-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
i am facing this error:
TypeError: undefined is not an object evaluation
mSensorManager.startMagnetometer
here is mt code :
var mSensorManager = require('NativeModules').SensorManager;
componentDidMount() {
mSensorManager.startMagnetometer(100);
DeviceEventEmitter.addListener('azimuthChanged', this.azimuthChanged.bind(this));
this.interval = setInterval(() => {
this.setState({
azimuth: this.currentAzimuth
});
}, 100);
}
Metadata
Metadata
Assignees
Labels
No labels