Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_handleMotion({ alpha, beta, gamma }) {
SyntheticPlatformEmitter.emit('accelerometerDidUpdate', {
x: gamma * scalar,
y: beta * scalar,
z: alpha * scalar,
});
},
startObserving() {
_handleMotion({ accelerationIncludingGravity }) {
SyntheticPlatformEmitter.emit('gyroscopeDidUpdate', {
x: accelerationIncludingGravity.x,
y: accelerationIncludingGravity.y,
z: accelerationIncludingGravity.z,
});
},
startObserving() {