Skip to content

OjeshManandhar/LifeLine-App-Test

Repository files navigation

LifeLine-App-Test

Testing codes for LifeLine app (MAJOR PROJECT)

Screenshots

Search destination Pick destination
Pick route to destination Route to destination
Add Obstruction Delete Obstruction

Branch

  • react-navigation-4.x
    • Code to navigate between screens using React Navigation v4.x
    • For comparing with navigation using react-native-router-flux
    • Decided to use this
  • react-native-router-flux
  • envVar
    • Trying to read the data stored in .env file using process.env. FAILED
  • react-native-dotenv
    • Read data from .env file using a module react-native-dotenv
    • Followed instructions this link
  • mapboxMap
  • searchLocation
  • mapboxSDK
    • Searching for locations using Mapbox SDK JS
    • Trace route from user current location to the selected destination
  • pickLocation
    • Allowing the user to pick a location on Map and trace a route to that location
  • changeUI
    • Making a more Google Maps app like UI
    • Adding small animation
  • addObstruction
    • Add and remove obstruction marker on map

Attribution

Issues

Tested on ANDROID only

  • on Android 5.1.1
    • MapboxGL.Camera.setCamera() doesn't always work
    • MapboxGL.Camera.fitBounds() zooms out every time it is called eventually causing error
    • MapboxGL.MapView.onPress() is not fired after ShowRouteInfo is rendered i.e. only it is only fired once

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.