Use magnetometer

Hi,
Is there a way to use the magnetometer without detaching the app as the accelerometer or gyroscope ?
I would like to use GitHub - kprimice/react-native-sensor-manager: Native sensors access for react-native but apparently, something blocks.
Thank you !

hello! the native api for this is not currently exposed. you can’t use that library with the expo client because it has native dependencies. see the differences between react-native and expo here: What is the difference between Expo and React Native? - Stack Overflow

i made a feature request for magnetometer here: Expose Magnetometer sensor | Voters | Expo

2 Likes