v0.1 public beta early access on GitHub
Home / Screens / travel-trip-onboarding
Screen template

Trip Onboarding Screen

Illustrated travel onboarding: boarding pass hero, paged scenes, navy world

pro Expo Go ✓ iosandroid gestures: tap · swipe haptics: light · selection
$ npx lumioui add travel-trip-onboarding
import { TripOnboardingScreen } from "@/screens/travel/trip-onboarding";
Registry dependencies2
Native packages installed6
@lumioui/ui@latest@lumioui/core@latestreact-native-safe-area-context@*react-native-reanimated@*react-native-svg@*nativewind@*
travel/trip-onboarding.tsxsource · yours to edit
import * as React from "react";
import { useState } from "react";
import { Image, View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
import { Icon, Text, type IconName } from "@lumioui/ui";
import { cn, useHaptic } from "@lumioui/core";
import { Display, Float, Mount, Press, SERIF } from "../shared";

/** Boarding pass — airline code + times on the left, barcode strip on the
 *  right, the tilted ticket that fills the first scene. */
function BoardingPass({
  code,
  city,
  from,
  to,
}: {
  code: string;
  city: string;
  from: string;
  to: string;
}) {
  const bars = [10, 16, 8, 20, 12, 22, 9, 18, 14, 21, 11, 17];
  return (
    <View className="w-[236px] flex-row items-center overflow-hidden rounded-2xl bg-white p-3 shadow-md shadow-black/10">
      <View className="w-[74px]">
        <Text className="text-[22px] font-bold tracking-tight">{code}</Text>
        <Text className="text-[10px] text-muted-foreground">{city}</Text>
        <Text className="mt-2 text-[8px] text-muted-foreground">Lumio Airlines</Text>
      </View>
      <View className="mx-3 self-stretch border-l border-dashed border-[#D3DEE5]" />
      <View className="flex-1 items-center gap-1">
        <Text className="font-mono text-[13px] font-semibold">{from} <Text className="text-muted-foreground">AM</Text></Text>
        <Text className="text-[9px] text-muted-foreground">to</Text>
        <Text className="font-mono text-[13px] font-semibold">{to} <Text className="text-muted-foreground">PM</Text></Text>
      </View>
      <View className="ml-2 flex-row items-center gap-[2px]">
        {bars.map((h, i) => (
          <View key={i} className="w-[2px] rounded-sm bg-foreground" style={{ height: h * 2.4 }} />
        ))}
      </View>
    </View>
  );
}

/** Postage stamp — white card with a perforated (dashed) inner border. */
function Stamp({ icon, label }: { icon: IconName; label: string }) {
  return (
    <View className="w-[86px] items-center gap-1.5 rounded-lg bg-white p-1.5 shadow-md shadow-black/10">
      <View className="h-[76px] w-full items-center justify-center gap-1 rounded-md border-2 border-dashed border-[#C7D8E3] bg-[#F2F9FC]">
        <Icon name={icon} size="lg" color="#0B2B33" />
        <Text className="text-[9px] font-bold">{label}</Text>
      </View>
      <Text className="text-[7px] text-muted-foreground">25/02/25</Text>
    </View>
  );
}

/** Chat bubble — the little white pill that floats between scene objects. */
function ChatBubble({ text, cls }: { text: string; cls: string }) {
  return (
    <Float className={cls} distance={4} duration={2400}>
      <View className="rounded-2xl rounded-bl-sm bg-white px-3.5 py-2 shadow-md shadow-black/10">
        <Text className="text-[12px] font-semibold">{text}</Text>
      </View>
    </Float>
  );
}

const PAGES: {
  tag: string;
  tagIcon: IconName;
  title: string;
  sub: string;
  cta: string;
}[] = [
  {
    tag: "Ticket",
    tagIcon: "plane",
    title: "Keep Every Ticket\nWithin Reach",
    sub: "Keep every ticket organized and ready when you need it.",
    cta: "Next",
  },
  {
    tag: "Planning",
    tagIcon: "pin",
    title: "Plan Every Stop,\nEffortlessly.",
    sub: "Lumio finds the right places and builds a plan around your trip.",
    cta: "Next",
  },
  {
    tag: "Memories",
    tagIcon: "camera",
    title: "Collect Every\nMoment.",
    sub: "Save the memories you make along the way.",
    cta: "Get Started",
  },
];

/** Trip onboarding — ONE animated stage that morphs per page: floating
 *  boarding passes → stamp postcards on a dashed route → a memory book.
 *  Tap Next and the scene crossfades inside the same tile. */
export function TripOnboardingScreen({
  onDone,
  onSkip,
  onBack,
  onSignIn,
}: {
  onDone?: () => void;
  onSkip?: () => void;
  onBack?: () => void;
  onSignIn?: () => void;
}) {
  const haptics = useHaptic();
  const insets = useSafeAreaInsets();
  const [index, setIndex] = useState(0);
  const prog = useSharedValue(0);
  const last = index === PAGES.length - 1;
  const page = PAGES[index] ?? PAGES[0]!;

  const goTo = (i: number) => {
    setIndex(i);
    prog.value = withTiming(i, { duration: 520 });
    haptics.selection();
  };
  const next = () => (last ? onDone?.() : goTo(index + 1));

  // Per-scene style — each scene fades/slides out as progress passes it.
  const useSceneStyle = (i: number) =>
    useAnimatedStyle(() => {
      const d = prog.value - i;
      const gone = Math.min(1, Math.abs(d));
      return {
        opacity: 1 - gone,
        transform: [{ translateY: d * 60 }, { scale: 1 - gone * 0.07 }],
      };
    });
  const s0 = useSceneStyle(0);
  const s1 = useSceneStyle(1);
  const s2 = useSceneStyle(2);

  return (
    <View className="flex-1 bg-white" style={{ paddingTop: insets.top }}>
      {/* Top bar — back chevron + Skip pill. */}
      <View className="flex-row items-center justify-between px-5 pt-2">
        <Press
          onPress={() => {
            haptics.light();
            index > 0 ? goTo(index - 1) : onBack?.();
          }}
          accessibilityRole="button"
          accessibilityLabel="Go back"
          hitSlop={10}
          className="h-10 w-10 items-center justify-center rounded-full border border-border"
        >
          <Icon name="chevron-left" size="sm" />
        </Press>
        {!last && (
          <Press
            onPress={() => {
              haptics.light();
              onSkip?.();
            }}
            accessibilityRole="button"
            accessibilityLabel="Skip onboarding"
            hitSlop={10}
            className="rounded-full bg-[#F0F4F6] px-4 py-2"
          >
            <Text className="text-[13px] font-medium text-muted-foreground">Skip</Text>
          </Press>
        )}
      </View>

      {/* The stage — one persistent tile whose scene morphs per page. */}
      <Mount className="mx-5 mt-3 h-[330px] overflow-hidden rounded-[32px] bg-[#D7EEF7]">
        {/* faint map arcs */}
        <View className="absolute -right-24 -top-24 h-72 w-72 rounded-full border border-white/50" pointerEvents="none" />
        <View className="absolute -right-16 -top-16 h-48 w-48 rounded-full border border-white/40" pointerEvents="none" />
        <View className="absolute -bottom-28 -left-28 h-80 w-80 rounded-full border border-white/40" pointerEvents="none" />

        {/* Scene 1 — boarding passes drifting over the map. */}
        <Animated.View style={s0} className="absolute inset-0" pointerEvents="none">
          <View className="absolute left-5 top-9" style={{ transform: [{ rotate: "-9deg" }] }}>
            <BoardingPass code="CDG" city="Paris" from="09:30" to="11:30" />
          </View>
          <View className="absolute bottom-9 right-3" style={{ transform: [{ rotate: "7deg" }] }}>
            <BoardingPass code="AMM" city="Rome" from="15:30" to="20:30" />
          </View>
          <ChatBubble text="We want to go Italy 🇮🇹" cls="absolute left-1/2 top-[46%] -translate-x-1/2" />
        </Animated.View>

        {/* Scene 2 — stamp postcards along a dashed route. */}
        <Animated.View style={s1} className="absolute inset-0" pointerEvents="none">
          <View className="absolute -left-10 bottom-6 h-64 w-64 rounded-full border-2 border-dashed border-white/70" />
          <View className="absolute bottom-[74px] left-[86px] h-3.5 w-3.5 rounded-full bg-[#0B2B33]/70" />
          <View className="absolute bottom-16 left-[110px] h-2 w-2 rounded-full bg-[#0B2B33]/40" />
          <View className="absolute left-8 top-12" style={{ transform: [{ rotate: "-12deg" }] }}>
            <Stamp icon="landmark" label="Pisa tower" />
          </View>
          <View className="absolute right-10 top-20" style={{ transform: [{ rotate: "6deg" }] }}>
            <Stamp icon="globe" label="Arc" />
          </View>
          <View className="absolute bottom-12 right-16" style={{ transform: [{ rotate: "14deg" }] }}>
            <Stamp icon="sun" label="Mexico" />
          </View>
          <ChatBubble text="What place we can go?." cls="absolute left-1/2 top-[44%] -translate-x-1/2" />
        </Animated.View>

        {/* Scene 3 — the Memory Book. */}
        <Animated.View style={s2} className="absolute inset-0 items-center justify-center" pointerEvents="none">
          <View className="h-[240px] w-[190px] rounded-2xl bg-white p-4 shadow-md shadow-black/10" style={{ transform: [{ rotate: "-7deg" }] }}>
            {/* spiral rings down the right edge */}
            <View className="absolute -right-1.5 top-6 gap-4">
              {[0, 1, 2, 3, 4].map((i) => (
                <View key={i} className="h-3 w-3 rounded-full border-2 border-[#B9C9D4] bg-white" />
              ))}
            </View>
            <View className="h-8 w-8 items-center justify-center rounded-lg bg-[#0B2B33]">
              <Icon name="plane" size="sm" color="#FFF" />
            </View>
            <Text className="mt-2 text-[26px] font-bold leading-8 tracking-tight" style={{ fontFamily: SERIF }}>
              Memory{"\n"}Book
            </Text>
            <View className="mt-3 h-[92px] w-[110px] self-center overflow-hidden rounded-xl border-4 border-white shadow-sm" style={{ transform: [{ rotate: "5deg" }] }}>
              <Image
                source={{ uri: "https://images.unsplash.com/photo-1552832230-c0197dd311b5?w=300&q=80" }}
                className="h-full w-full"
                resizeMode="cover"
              />
            </View>
          </View>
          <View className="absolute bottom-16 right-16 h-9 w-9 items-center justify-center rounded-full bg-white shadow-md" style={{ transform: [{ rotate: "18deg" }] }}>
            <Icon name="plane" size="sm" color="#0B2B33" />
          </View>
        </Animated.View>
      </Mount>

      {/* Page dots — three ticks under the stage. */}
      <View className="mt-4 flex-row items-center justify-center gap-1.5">
        {PAGES.map((_, i) => (
          <View key={i} className={cn("h-1.5 rounded-full", i === index ? "w-5 bg-[#0B2B33]" : "w-1.5 bg-[#0B2B33]/20")} />
        ))}
      </View>

      {/* Copy — tag pill + title + sub swap per page. */}
      <View className="flex-1 items-center justify-center gap-3 px-8">
        <View className="flex-row items-center gap-1.5 rounded-full bg-[#F0F4F6] px-3 py-1.5">
          <View className="h-5 w-5 items-center justify-center rounded-full bg-[#0B2B33]">
            <Icon name={page.tagIcon} size="sm" color="#FFF" />
          </View>
          <Text className="text-[12px] font-semibold">{page.tag}</Text>
        </View>
        <Display className="text-center text-[30px] leading-9 tracking-tight">{page.title}</Display>
        <Text variant="muted" className="text-center text-[13px] leading-5">
          {page.sub}
        </Text>
      </View>

      {/* CTA + sign-in footer. */}
      <View className="gap-3 px-6" style={{ paddingBottom: insets.bottom + 20 }}>
        <Press
          onPress={() => {
            haptics.medium();
            next();
          }}
          accessibilityRole="button"
          accessibilityLabel={page.cta}
          className="h-14 w-full items-center justify-center rounded-full bg-[#0B2B33]"
        >
          <Text className="text-[16px] font-semibold text-white">{page.cta}</Text>
        </Press>
        <View className="flex-row items-center justify-center gap-1.5">
          <Text className="text-[13px] text-muted-foreground">Do you have an account?</Text>
          <Press onPress={onSignIn} hitSlop={8} accessibilityRole="button" accessibilityLabel="Sign in">
            <Text className="text-[13px] font-bold">Sign In</Text>
          </Press>
        </View>
      </View>
    </View>
  );
}
TripOnboardingScreen.displayName = "TripOnboardingScreen";
agent prompt — paste into Claude Code, Cursor, Devin…
Recreate the "Trip Onboarding Screen" screen in React Native using LumioUI.

Goal: Illustrated travel onboarding: boarding pass hero, paged scenes, navy world 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 add travel-trip-onboarding
```

Or pull just the components: `npx lumioui add icon text`

Native packages:
- @lumioui/ui@latest
- @lumioui/core@latest
- react-native-safe-area-context@*
- react-native-reanimated@*
- react-native-svg@*
- nativewind@*

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

## Components — how, where, when

### `icon` — Lucide icon set mapped to theme colors and sizes.
- `<Icon>` ×5

### `text` — Themed type scale from caption to display.
- `<Text>` ×16

## 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/travel/trip-onboarding.tsx` exporting TripOnboardingScreen. Preserve the props interface — the host app wires the callbacks (navigation, submit handlers) through them.

## Reference implementation

The LumioUI source for this screen — reproduce it faithfully:

```tsx
import * as React from "react";
import { useState } from "react";
import { Image, View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
import { Icon, Text, type IconName } from "@lumioui/ui";
import { cn, useHaptic } from "@lumioui/core";
import { Display, Float, Mount, Press, SERIF } from "../shared";

/** Boarding pass — airline code + times on the left, barcode strip on the
 *  right, the tilted ticket that fills the first scene. */
function BoardingPass({
  code,
  city,
  from,
  to,
}: {
  code: string;
  city: string;
  from: string;
  to: string;
}) {
  const bars = [10, 16, 8, 20, 12, 22, 9, 18, 14, 21, 11, 17];
  return (
    <View className="w-[236px] flex-row items-center overflow-hidden rounded-2xl bg-white p-3 shadow-md shadow-black/10">
      <View className="w-[74px]">
        <Text className="text-[22px] font-bold tracking-tight">{code}</Text>
        <Text className="text-[10px] text-muted-foreground">{city}</Text>
        <Text className="mt-2 text-[8px] text-muted-foreground">Lumio Airlines</Text>
      </View>
      <View className="mx-3 self-stretch border-l border-dashed border-[#D3DEE5]" />
      <View className="flex-1 items-center gap-1">
        <Text className="font-mono text-[13px] font-semibold">{from} <Text className="text-muted-foreground">AM</Text></Text>
        <Text className="text-[9px] text-muted-foreground">to</Text>
        <Text className="font-mono text-[13px] font-semibold">{to} <Text className="text-muted-foreground">PM</Text></Text>
      </View>
      <View className="ml-2 flex-row items-center gap-[2px]">
        {bars.map((h, i) => (
          <View key={i} className="w-[2px] rounded-sm bg-foreground" style={{ height: h * 2.4 }} />
        ))}
      </View>
    </View>
  );
}

/** Postage stamp — white card with a perforated (dashed) inner border. */
function Stamp({ icon, label }: { icon: IconName; label: string }) {
  return (
    <View className="w-[86px] items-center gap-1.5 rounded-lg bg-white p-1.5 shadow-md shadow-black/10">
      <View className="h-[76px] w-full items-center justify-center gap-1 rounded-md border-2 border-dashed border-[#C7D8E3] bg-[#F2F9FC]">
        <Icon name={icon} size="lg" color="#0B2B33" />
        <Text className="text-[9px] font-bold">{label}</Text>
      </View>
      <Text className="text-[7px] text-muted-foreground">25/02/25</Text>
    </View>
  );
}

/** Chat bubble — the little white pill that floats between scene objects. */
function ChatBubble({ text, cls }: { text: string; cls: string }) {
  return (
    <Float className={cls} distance={4} duration={2400}>
      <View className="rounded-2xl rounded-bl-sm bg-white px-3.5 py-2 shadow-md shadow-black/10">
        <Text className="text-[12px] font-semibold">{text}</Text>
      </View>
    </Float>
  );
}

const PAGES: {
  tag: string;
  tagIcon: IconName;
  title: string;
  sub: string;
  cta: string;
}[] = [
  {
    tag: "Ticket",
    tagIcon: "plane",
    title: "Keep Every Ticket\nWithin Reach",
    sub: "Keep every ticket organized and ready when you need it.",
    cta: "Next",
  },
  {
    tag: "Planning",
    tagIcon: "pin",
    title: "Plan Every Stop,\nEffortlessly.",
    sub: "Lumio finds the right places and builds a plan around your trip.",
    cta: "Next",
  },
  {
    tag: "Memories",
    tagIcon: "camera",
    title: "Collect Every\nMoment.",
    sub: "Save the memories you make along the way.",
    cta: "Get Started",
  },
];

/** Trip onboarding — ONE animated stage that morphs per page: floating
 *  boarding passes → stamp postcards on a dashed route → a memory book.
 *  Tap Next and the scene crossfades inside the same tile. */
export function TripOnboardingScreen({
  onDone,
  onSkip,
  onBack,
  onSignIn,
}: {
  onDone?: () => void;
  onSkip?: () => void;
  onBack?: () => void;
  onSignIn?: () => void;
}) {
  const haptics = useHaptic();
  const insets = useSafeAreaInsets();
  const [index, setIndex] = useState(0);
  const prog = useSharedValue(0);
  const last = index === PAGES.length - 1;
  const page = PAGES[index] ?? PAGES[0]!;

  const goTo = (i: number) => {
    setIndex(i);
    prog.value = withTiming(i, { duration: 520 });
    haptics.selection();
  };
  const next = () => (last ? onDone?.() : goTo(index + 1));

  // Per-scene style — each scene fades/slides out as progress passes it.
  const useSceneStyle = (i: number) =>
    useAnimatedStyle(() => {
      const d = prog.value - i;
      const gone = Math.min(1, Math.abs(d));
      return {
        opacity: 1 - gone,
        transform: [{ translateY: d * 60 }, { scale: 1 - gone * 0.07 }],
      };
    });
  const s0 = useSceneStyle(0);
  const s1 = useSceneStyle(1);
  const s2 = useSceneStyle(2);

  return (
    <View className="flex-1 bg-white" style={{ paddingTop: insets.top }}>
      {/* Top bar — back chevron + Skip pill. */}
      <View className="flex-row items-center justify-between px-5 pt-2">
        <Press
          onPress={() => {
            haptics.light();
            index > 0 ? goTo(index - 1) : onBack?.();
          }}
          accessibilityRole="button"
          accessibilityLabel="Go back"
          hitSlop={10}
          className="h-10 w-10 items-center justify-center rounded-full border border-border"
        >
          <Icon name="chevron-left" size="sm" />
        </Press>
        {!last && (
          <Press
            onPress={() => {
              haptics.light();
              onSkip?.();
            }}
            accessibilityRole="button"
            accessibilityLabel="Skip onboarding"
            hitSlop={10}
            className="rounded-full bg-[#F0F4F6] px-4 py-2"
          >
            <Text className="text-[13px] font-medium text-muted-foreground">Skip</Text>
          </Press>
        )}
      </View>

      {/* The stage — one persistent tile whose scene morphs per page. */}
      <Mount className="mx-5 mt-3 h-[330px] overflow-hidden rounded-[32px] bg-[#D7EEF7]">
        {/* faint map arcs */}
        <View className="absolute -right-24 -top-24 h-72 w-72 rounded-full border border-white/50" pointerEvents="none" />
        <View className="absolute -right-16 -top-16 h-48 w-48 rounded-full border border-white/40" pointerEvents="none" />
        <View className="absolute -bottom-28 -left-28 h-80 w-80 rounded-full border border-white/40" pointerEvents="none" />

        {/* Scene 1 — boarding passes drifting over the map. */}
        <Animated.View style={s0} className="absolute inset-0" pointerEvents="none">
          <View className="absolute left-5 top-9" style={{ transform: [{ rotate: "-9deg" }] }}>
            <BoardingPass code="CDG" city="Paris" from="09:30" to="11:30" />
          </View>
          <View className="absolute bottom-9 right-3" style={{ transform: [{ rotate: "7deg" }] }}>
            <BoardingPass code="AMM" city="Rome" from="15:30" to="20:30" />
          </View>
          <ChatBubble text="We want to go Italy 🇮🇹" cls="absolute left-1/2 top-[46%] -translate-x-1/2" />
        </Animated.View>

        {/* Scene 2 — stamp postcards along a dashed route. */}
        <Animated.View style={s1} className="absolute inset-0" pointerEvents="none">
          <View className="absolute -left-10 bottom-6 h-64 w-64 rounded-full border-2 border-dashed border-white/70" />
          <View className="absolute bottom-[74px] left-[86px] h-3.5 w-3.5 rounded-full bg-[#0B2B33]/70" />
          <View className="absolute bottom-16 left-[110px] h-2 w-2 rounded-full bg-[#0B2B33]/40" />
          <View className="absolute left-8 top-12" style={{ transform: [{ rotate: "-12deg" }] }}>
            <Stamp icon="landmark" label="Pisa tower" />
          </View>
          <View className="absolute right-10 top-20" style={{ transform: [{ rotate: "6deg" }] }}>
            <Stamp icon="globe" label="Arc" />
          </View>
          <View className="absolute bottom-12 right-16" style={{ transform: [{ rotate: "14deg" }] }}>
            <Stamp icon="sun" label="Mexico" />
          </View>
          <ChatBubble text="What place we can go?." cls="absolute left-1/2 top-[44%] -translate-x-1/2" />
        </Animated.View>

        {/* Scene 3 — the Memory Book. */}
        <Animated.View style={s2} className="absolute inset-0 items-center justify-center" pointerEvents="none">
          <View className="h-[240px] w-[190px] rounded-2xl bg-white p-4 shadow-md shadow-black/10" style={{ transform: [{ rotate: "-7deg" }] }}>
            {/* spiral rings down the right edge */}
            <View className="absolute -right-1.5 top-6 gap-4">
              {[0, 1, 2, 3, 4].map((i) => (
                <View key={i} className="h-3 w-3 rounded-full border-2 border-[#B9C9D4] bg-white" />
              ))}
            </View>
            <View className="h-8 w-8 items-center justify-center rounded-lg bg-[#0B2B33]">
              <Icon name="plane" size="sm" color="#FFF" />
            </View>
            <Text className="mt-2 text-[26px] font-bold leading-8 tracking-tight" style={{ fontFamily: SERIF }}>
              Memory{"\n"}Book
            </Text>
            <View className="mt-3 h-[92px] w-[110px] self-center overflow-hidden rounded-xl border-4 border-white shadow-sm" style={{ transform: [{ rotate: "5deg" }] }}>
              <Image
                source={{ uri: "https://images.unsplash.com/photo-1552832230-c0197dd311b5?w=300&q=80" }}
                className="h-full w-full"
                resizeMode="cover"
              />
            </View>
          </View>
          <View className="absolute bottom-16 right-16 h-9 w-9 items-center justify-center rounded-full bg-white shadow-md" style={{ transform: [{ rotate: "18deg" }] }}>
            <Icon name="plane" size="sm" color="#0B2B33" />
          </View>
        </Animated.View>
      </Mount>

      {/* Page dots — three ticks under the stage. */}
      <View className="mt-4 flex-row items-center justify-center gap-1.5">
        {PAGES.map((_, i) => (
          <View key={i} className={cn("h-1.5 rounded-full", i === index ? "w-5 bg-[#0B2B33]" : "w-1.5 bg-[#0B2B33]/20")} />
        ))}
      </View>

      {/* Copy — tag pill + title + sub swap per page. */}
      <View className="flex-1 items-center justify-center gap-3 px-8">
        <View className="flex-row items-center gap-1.5 rounded-full bg-[#F0F4F6] px-3 py-1.5">
          <View className="h-5 w-5 items-center justify-center rounded-full bg-[#0B2B33]">
            <Icon name={page.tagIcon} size="sm" color="#FFF" />
          </View>
          <Text className="text-[12px] font-semibold">{page.tag}</Text>
        </View>
        <Display className="text-center text-[30px] leading-9 tracking-tight">{page.title}</Display>
        <Text variant="muted" className="text-center text-[13px] leading-5">
          {page.sub}
        </Text>
      </View>

      {/* CTA + sign-in footer. */}
      <View className="gap-3 px-6" style={{ paddingBottom: insets.bottom + 20 }}>
        <Press
          onPress={() => {
            haptics.medium();
            next();
          }}
          accessibilityRole="button"
          accessibilityLabel={page.cta}
          className="h-14 w-full items-center justify-center rounded-full bg-[#0B2B33]"
        >
          <Text className="text-[16px] font-semibold text-white">{page.cta}</Text>
        </Press>
        <View className="flex-row items-center justify-center gap-1.5">
          <Text className="text-[13px] text-muted-foreground">Do you have an account?</Text>
          <Press onPress={onSignIn} hitSlop={8} accessibilityRole="button" accessibilityLabel="Sign in">
            <Text className="text-[13px] font-bold">Sign In</Text>
          </Press>
        </View>
      </View>
    </View>
  );
}
TripOnboardingScreen.displayName = "TripOnboardingScreen";
```

Screen: https://lumioui.dev/screens/travel-trip-onboarding
iPhone 17 · iOS
9:41
Live preview — the real screen via Expo Web · open full ↗