How surendharramaraj/driverhirecustomerfrontend works
This is an Expo/React Native ride-booking app. The visible map workflow obtains the rider’s location, reverse-geocodes it, accepts a destination, requests a route, and displays map/trip options. The home screen also describes pickup scheduling, vehicle choice, and requesting a driver, but booking execution is not established by the excerpts. Authentication and ride-history routes are present in the tree; their behavior and wiring are not sampled. Edges reflect only shown calls or documented framework entry behavior.
Main entry points: index.tsx Map and trip options · home.tsx Home trip flow · useThemeColor.ts Theme color hook · OlaAutocomplete.tsx Place autocomplete
Components 24
Ride planning
- Map and trip options
app/(tabs)/index.tsx - Home trip flow
app/home.tsx - Place autocomplete
app/OlaAutocomplete.tsx - Ola Maps places
- Ola Maps routing
- Device location
- Map display
app/(tabs)/index.tsx
Rider account
- Onboarding
app/onboarding.tsx - Login
app/login.tsx - Phone verification
app/phone-verification.tsx - OTP verification
app/otp-verification.tsx - Account tab
app/(tabs)/account.tsx - My rides
app/(tabs)/myrides.tsx
Shared interface
- App layout
app/_layout.tsx - Tab navigation
app/(tabs)/_layout.tsx - Theme color hook
hooks/useThemeColor.ts - Color scheme
hooks/useColorScheme.ts - Theme palette
constants/Colors.ts - Themed text
components/ThemedText.tsx - Themed view
components/ThemedView.tsx - Icon fallback
components/ui/IconSymbol.tsx - Tab background
components/ui/TabBarBackground.tsx
Other components
- Rider
- Expo Router
Connections 25
- Rider → Expo Router: opens app
README.md - Expo Router → App layout: loads routes
- App layout → Color scheme: reads scheme
app/_layout.tsx - Tab navigation → Map and trip options: routes to
app/(tabs)/_layout.tsx - Rider → Map and trip options: plans trip
- Map and trip options → Device location: requests location
app/(tabs)/index.tsx - Map and trip options → Ola Maps places: reverse geocodes
app/(tabs)/index.tsx - Map and trip options → Ola Maps routing: requests directions
app/(tabs)/index.tsx - Map and trip options → Map display: renders route
app/(tabs)/index.tsx - Map and trip options → Place autocomplete: uses search
app/(tabs)/index.tsx - Home trip flow → Place autocomplete: uses search
app/home.tsx - Home trip flow → Device location: requests location
app/home.tsx - Home trip flow → Ola Maps places: reverse geocodes
app/home.tsx - Home trip flow → Ola Maps routing: requests directions
app/home.tsx - Place autocomplete → Ola Maps places: fetches suggestions
app/OlaAutocomplete.tsx - Expo Router → Onboarding: routes to
- Expo Router → Login: routes to
- Expo Router → Phone verification: routes to
- Expo Router → OTP verification: routes to
- Expo Router → Account tab: routes to
- Expo Router → My rides: routes to
- Themed text → Theme color hook: gets color
components/ThemedText.tsx - Themed view → Theme color hook: gets color
components/ThemedView.tsx - Theme color hook → Color scheme: reads scheme
hooks/useThemeColor.ts - Theme color hook → Theme palette: selects palette
hooks/useThemeColor.ts