Safety
Get help mid-trip without leaving the ride. Press and hold the emergency button as a ring closes, then read your address, car and location to the dispatcher, with trusted contacts and trip sharing below.
About the Safety screen
A complete ride-hailing flow: destination, ride options, matching, driver arriving, the trip, receipt and safety. This is one of 14 ride screens.
How it behaves
It responds to taps, long presses and scrolling. On a phone you feel a firmer tap on bigger actions, a success pulse when the task completes, a selection tick when you switch an option and a light tap on buttons.
- Has an empty state for when there's nothing to show yet.
- Respects Reduce Motion: movement drops out and the feedback stays.
Make it yours
npx @lumioui/cli add pro/ride-safety copies the screen into screens/ride/safety.tsx along with the 7 components it uses, so the source is yours to edit.
It's shown in neutral ink: wrap it in an <Accent> to give it your brand colour. It follows light and dark mode, and runs on iOS and Android, including Expo Go.
Built from
- ButtonPill button that presses down under your finger, in eight styles from solid to glass, with a built-in loading state that swaps in place while an action runs.
- IconIcon 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.
- ImageImage 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.
- Map ViewCalm 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.
- SeparatorThin divider line, horizontal or vertical. It can draw itself in as a page builds, or show a perforated tear line for tickets and receipts.
- SwitchOn/off switch whose colour fills in from behind the thumb as it turns on. Turning off fades it back quickly, and a disabled switch gives a gentle flicker when tapped.
- TextThemed 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.