/lof-mobile-app

Mobile app built with React Native for bike booking service with Mapbox GL and Bluetooth Low Energy

Primary LanguageJavaScript

LOF Mobile App

circleB prettierB commitsB

Alt Text

About

This mobile app is built with React Native and Redux. It consumes an API located here. It offers an instant bike booking service using Location and Bluetooth Low Energy interfaces.

Index

Development

Clone the repo and install dependencies

git clone https://github.com/fnmendez/lof-mobile-app LOFMobileApp
cd LOFMobileApp
yarn

Start a development server and you will be able to run the app in your device

yarn start

If you want to use Android and iOS simulators instead, run

yarn sim

Environment variables

variable use
API_URI API base url for requests
API_SECRET API secret header for security
BLE_SERVICE_UUID BLE Locks service UUID
BLE_CHARACTERISTIC_UUID BLE Locks characteristic UUID
BLE_GET_INFO_PAYLOAD BLE Locks command payload
BLE_REQUEST_OPEN_PAYLOAD BLE Locks command payload
BLE_REQUEST_LOCK_PAYLOAD BLE Locks command payload
MAPBOX_TOKEN Mapbox token

Dependencies

  • Axios: Handle HTTP requests
  • BLE Manager: Offer an interface for Bluetooth Low Energy on Android and iOS.
  • Dotenv: Allows to simulate using environment variables in this context.
  • Mapbox GL: It offers the map, tracking the user location and some animated actions.
  • React Navigation: Offer a navigation system interface with components, APIs and more.
  • Redux: Handles the app state and its changes.
  • Redux Persist: Restore last Redux state.
  • Redux Promise Middleware: Handle async action creators for Redux.
  • Redux Thunk: Allow returning functions from Redux action creators and passing an extra argument for them.

Author