Use magnetometer

Is there a way to use the magnetometer without detaching the app as the accelerometer or gyroscope ?
I would like to use 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:

i made a feature request for magnetometer here: