Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get DeviceMotion() {
deprecatedModule(`DangerZone.DeviceMotion -> import { DeviceMotion } from 'expo-sensors'`, 'DangerZone.DeviceMotion', 'expo-sensors');
return require('expo-sensors').DeviceMotion;
},
// react-native-reanimated
get DeviceMotion() {
deprecatedModule(
`DangerZone.DeviceMotion -> import { DeviceMotion } from 'expo-sensors'`,
'DangerZone.DeviceMotion',
'expo-sensors'
);
return require('expo-sensors').DeviceMotion;
},
getSensor = () => Sensors.DeviceMotion;
renderXYZBlock = (name: string, { x, y, z }: { x?: number; y?: number; z?: number } = {}) => (