A sample React Native app that uses the accelerometer data from React Native Sensors.
You can read the full tutorial at: https://pusher.com/tutorials/game-device-sensors-react-native
- Clone the repo:
git clone https://github.com/karshd3v/DodgeBox.git
cd DodgeBox
- Install the app dependencies:
yarn install
-
Follow the setup instructions for React Native Sensors.
-
Eject the project (re-creates the
iosandandroidfolders):
react-native eject
- Run the app:
react-native run-android
react-native run-ios
