176 Food
Mixed finishes

Courier Tracking

Food Pro

Follow your food delivery on a live map while a sheet counts down the minutes and shows your courier. When they reach your door, the pin lights up and the countdown becomes the arrival time.

More in Food

View all 8

Agent prompt

Paste into Claude Code, Cursor or Devin to rebuild this screen.
Recreate the "Courier Tracking" screen in React Native using LumioUI.

Goal: Follow your food delivery on a live map while a sheet counts down the minutes and shows your courier. When they reach your door, the pin lights up and the countdown becomes the arrival time. Match the reference implementation's layout, behavior, and motion exactly — this is a production screen, not a mockup.

## Setup

Fastest path — install the screen plus its component deps:

```bash
npx @lumioui/cli add pro/food-courier-tracking
```

Or pull just the components: `npx @lumioui/cli add pro/driver-card glass icon image pro/map-sheet pro/map-view text`

Native packages:
- react-native-reanimated@*
- react-native-safe-area-context@*
- react-native-svg@*

Stack assumptions: Expo SDK 54 / RN 0.81, Reanimated 4, NativeWind v4, TypeScript strict, Expo Go compatible.

## Components — how, where, when

### `driver-card` — Driver or courier card with licence plate, a drawn car in its real colour, photo, rating, ride PIN and message or call buttons. On arrival it highlights the plate and tells riders what to look for.
- `<DriverCard>` ×1

### `glass` — Glass surface for cards and controls: system glass on newer iOS, real refraction on the web and a frosted look elsewhere. Light can gather under your finger, and panes merge on newer iOS and the web.
- `<Glass>` ×2

### `icon` — Icon set drawn on one consistent grid, sized and coloured from your theme. The heart, star and bookmark can fill in place inside their outline, then fade back out.
- `<Icon>` ×5

### `image` — Image with a placeholder while it loads, a fallback when it fails, and aspect-ratio handling so your layout doesn’t jump when the picture arrives.
- `<Image>` ×1

### `map-sheet` — Bottom panel that stays on screen over a map, resting at peek, half and full heights. A flick snaps it to the right stop, and the map dims as the panel rises.
- `<MapSheet>` ×1

### `map-view` — Calm vector city map with no maps SDK: pickup, dropoff and price pins, a route that draws itself, and a car that drives along it. Nearby cars appear and fade out as they come and go.
- `<MapView>` ×1

### `text` — Themed type scale from caption to display that follows light and dark mode. Includes a pull-quote style with an accent rule and a quieter dimmed tone for secondary text.
- `<Text>` ×21 — Labels only: at 360pt a quarter-width column holds "On the way" in full once the per-stage icons are gone.

## Conventions (non-negotiable)

- Styling via NativeWind `className` with semantic tokens only: `bg-background`, `text-foreground`, `bg-card`, `text-card-foreground`, `bg-secondary`, `bg-muted`, `text-muted-foreground`, `bg-accent`, `bg-destructive`, `border-border`. Hard-coded colors only inside media overlays (`text-white`, `bg-black/N`).
- Motion via the token presets from `@lumioui/core` (`spring.press`, `spring.surface`, `spring.glide`, `timing.fast`, `timing.slow`, …) — no bespoke spring configs or durations.
- Gate transform motion behind `useReducedMotion()`; keep opacity/color feedback, drop travel and overshoot.
- Haptics via `useHaptic()`: `light` on press, `selection` on toggle/select, `warning` on invalid input. Never import expo-haptics directly.
- Press feedback via `usePressAnimation()` (~0.97 scale), not `activeOpacity` tricks.
- a11y: `accessibilityRole` + `accessibilityLabel` on every control, touch targets ≥44pt.
- Entrance choreography: staggered `Mount` wrappers (delay 0/60/120…) so regions land in sequence instead of popping in at once.
- Wrap the screen in `SafeAreaView`; keep dark mode working via the semantic tokens.

## Deliverable

One file: `screens/food/courier-tracking.tsx` exporting CourierTrackingScreen. Preserve the props interface — the host app wires the callbacks (navigation, submit handlers) through them.

## Reference implementation

This is a LumioUI Pro item: its source is not published in the docs. Install it with a Pro license key
(set `LUMIO_LICENSE_KEY`; keys are on lumioui.com/account) and read the installed file as the reference:

```bash
npx @lumioui/cli add pro/food-courier-tracking
```

The source lands at `screens/food/courier-tracking.tsx`.

Screen: https://lumioui.com/screens/food-courier-tracking