a simple example on how to use device motion in react-native application using expo.
Check out the Medium Post for detailed explanation.
I was looking into the Apple's Compass application which also has the leveling feature. I thought of creating the same application as an example to understand the physics of mobile device motion. After many thoughts, I thought to create an application which will show an illusion of a cylinder tower standing out with a shadow and our motion is the camera view looking at cylinder from different angles.
Open it in GitHub Desktop or git clone the repository or download the zip & extract the project.
Open the terminal in the project folder and type npm install
.
Open the terminal in the project folder and type npm start
.
The expo server will start and you can test it on any device by opening expo application or in any emulator.
- Give a star if you find this repository helpful.
- Tejas Rathod - @tejas77