rahulhaque / compass-react-native

A simple compass app built with react-native and react-native-sensors. Expo version - https://github.com/rahulhaque/compass-react-native-expo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compass React Native 🧭

A simple compass app built with react-native solely for learning purposes. Expo version can be found here. This project is overall an example for anyone trying to work with sensors/magnetometer in react native.

Description

A very simple demonstration of how to use the device's built in Magnetometer sensor to identify the direction and calculate the degree of angle. This app makes use of the below packages -

Run the App

  • Clone or download the repository.
  • cd into directory.
  • Run npm install
  • Copy your debug.keystore from Android Studio to project /android/app
  • Connect your device in USB debugging mode or use an Android emulator.
  • Then run react-native run-android.

To-do

  • Build and test the app on iOS devices. The /ios directory does not contain any dependencies or config. (Yet to own a Mac 💻).

Screenshots

Info

Share the project and spare a 🟊 if helped.

About

A simple compass app built with react-native and react-native-sensors. Expo version - https://github.com/rahulhaque/compass-react-native-expo

License:MIT License


Languages

Language:JavaScript 33.3%Language:Objective-C 27.3%Language:Ruby 15.2%Language:Starlark 12.7%Language:Java 11.5%