How to use the expo-sensors.DeviceMotion function in expo-sensors

To help you get started, we’ve selected a few expo-sensors examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Marwan01 / food-converter / node_modules / expo / build / DangerZone.js View on Github external
get DeviceMotion() {
        deprecatedModule(`DangerZone.DeviceMotion -> import { DeviceMotion } from 'expo-sensors'`, 'DangerZone.DeviceMotion', 'expo-sensors');
        return require('expo-sensors').DeviceMotion;
    },
    // react-native-reanimated
github expo / expo / packages / expo / src / DangerZone.ts View on Github external
get DeviceMotion() {
    deprecatedModule(
      `DangerZone.DeviceMotion -> import { DeviceMotion } from 'expo-sensors'`,
      'DangerZone.DeviceMotion',
      'expo-sensors'
    );
    return require('expo-sensors').DeviceMotion;
  },
github expo / expo / apps / native-component-list / src / screens / SensorScreen.tsx View on Github external
  getSensor = () => Sensors.DeviceMotion;
  renderXYZBlock = (name: string, { x, y, z }: { x?: number; y?: number; z?: number } = {}) => (