Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getSensor = () => Sensors.Magnetometer;
}
get() {
deprecatedModule(
`import { Magnetometer } from 'expo' -> import { Magnetometer } from 'expo-sensors'`,
'expo-sensors'
);
return require('expo-sensors').Magnetometer;
},
},