Subscribe to the accelerometer using expo-sensors and display the x, y, z values in real time. Clean up the subscription on unmount. Only show values rounded to 2 decimal places.
Click Run to test your code