Skip to content

A React Native Magic 8 Ball application, replicating the Magic 8 Ball toy in the form of a mobile app. Built using Expo, and utilising the device's Accelerometer & Haptics Engine.

Notifications You must be signed in to change notification settings

ChitrakshTarun/React-Native-Magic-8-Ball

Repository files navigation

Magic 8 Ball

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.

Tech Stack

Frameworks, Tools & Languages

  • React Native
  • Expo
  • JavaScript/TypeScript

Dependencies

  • expo-sensors To access the device's accelerometer
  • expo-haptics Vibration feedback when the Magic 8 Ball starts generating

Run Locally

Pre-requisites

  • 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.

Installation

  1. 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
  1. 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.

About

A React Native Magic 8 Ball application, replicating the Magic 8 Ball toy in the form of a mobile app. Built using Expo, and utilising the device's Accelerometer & Haptics Engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published