A React Native Magic 8 Ball application, replicating the Magic 8 Ball toy in the form of a mobile app.
The project is a simple, single-screen application, and uses the device's accelerometer to detect when the device has been shaken to generate a response, similar to how a physical Magic 8 Ball does. Simply shake the device with the app open to generate a random Magic 8 Ball response.
- React Native
- Expo
- JavaScript/TypeScript
expo-sensors
To access the device's accelerometerexpo-haptics
Vibration feedback when the Magic 8 Ball starts generating
- Node.js
- Expo CLI
- Android/iOS Emulator (A Physical Device works as well)
Considering the dependencies being used in this Expo project, you should be able to run the app using Expo Go.
- Clone this Repository, then change directory to the React-Native-Magic-8-Ball directory.
git clone https://github.com/ChitrakshTarun/React-Native-Magic-8-Ball.git
cd React-Native-Magic-8-Ball
- Install Dependencies
npm install
npx expo start
Either scan the QR code using Expo Go on your device, or use an Android/IOS emulator with Expo Go.