How autofleet/locomotion works
Locomotion is a React Native rider app for ride-hailing, ride-sharing, and mobility services, pre-integrated with Autofleet’s ride engine. The documented user journey is to enter a destination, receive ride offers, and book a ride; the app also includes payment setup and ride-related screens. The tree shows separate contexts and pages for these domains, but no source excerpts were provided, so internal call relationships cannot be verified. The diagram therefore limits edges to the README-documented user interaction and backend integration.
Main entry points: index.js Locomotion app
Components 13
Mobile app
- Locomotion app
examples/client/Locomotion/src/index.js - App routing
examples/client/Locomotion/src/LocomotionRouter.js
Ride experience
- Request a ride
examples/client/Locomotion/src/context/newRideContext - Places
examples/client/Locomotion/src/context/places - Vehicle availability
examples/client/Locomotion/src/context/availability - Active ride
examples/client/Locomotion/src/pages/ActiveRide - Future rides
examples/client/Locomotion/src/context/futureRides - Ride history
examples/client/Locomotion/src/context/rideHistory
Rider services
- Payments
examples/client/Locomotion/src/context/payments - Rider account
examples/client/Locomotion/src/context/user - Onboarding
examples/client/Locomotion/src/context/onboarding
Ride platform
- Autofleet ride engine
Other components
- Rider
Connections 2
- Rider → Locomotion app: uses
README.md - Locomotion app → Autofleet ride engine: uses ride engine
README.md