Grokking React Native
Vote

0% completed

​

Accessing Device Sensors

A phone lying still on a table reports that it is accelerating. Its accelerometer reads about 1 g on one axis, because the sensor measures the force of gravity along with any real movement. This detail decides how you write motion code, and it shows that a sensor reports raw physical values that your code must interpret.

Sensors are small hardware parts that measure motion, rotation and the surrounding magnetic field. The expo-sensors package gives you the same simple API for all of them, and it is included in Expo Go

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content