v0.1 public beta early access on GitHub
Home / Screens / misc-event-detail
Screen template

Event Detail Screen

Event cover + meta + RSVP

pro Expo Go ✓ iosandroid gestures: tap · scroll haptics: light · selection
$ npx lumioui add misc-event-detail
import { EventDetailScreen } from "@/screens/misc/event-detail";
Native packages installed6
@lumioui/ui@latest@lumioui/core@latestreact-native-safe-area-context@*react-native-reanimated@*react-native-svg@*nativewind@*
misc/event-detail.tsxsource · yours to edit
import * as React from "react";
import { ScrollView, View, type ImageSourcePropType } from "react-native";
import { SafeAreaView, useSafeAreaInsets } from "react-native-safe-area-context";
import { AvatarGroup, Button, Glass, Icon, Image, List, Text } from "@lumioui/ui";
import { useHaptic } from "@lumioui/core";
import { Display, Mount, SEPARATOR_INSET, StickyBottomBar, StoryScrim, World } from "../shared";

export interface EventDetailScreenProps {
  title?: string;
  date?: string;
  venue?: string;
  price?: string;
  going?: string;
  coverUrl?: string;
  about?: string;
  attendeeImages?: { source?: ImageSourcePropType; fallback?: string }[];
  onRsvp?: () => void;
  onBack?: () => void;
}

/** Event detail — cover, date/venue rows, going avatars, RSVP. */
export function EventDetailScreen({
  title = "Lumio Design Meetup",
  date = "Thu, Oct 2 · 7:00 PM",
  venue = "Warehouse 9, Lisbon",
  price = "Free",
  going = "48 going",
  coverUrl = "https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop&q=70&auto=format",
  about = "An evening of design engineering: live teardowns of three shipped components, a motion clinic, then drinks on the terrace. Bring a component you are stuck on — we will pick two to fix on stage.",
  attendeeImages = [
    { source: { uri: "https://i.pravatar.cc/100?img=32" }, fallback: "PN" },
    { source: { uri: "https://i.pravatar.cc/100?img=59" }, fallback: "MO" },
    { source: { uri: "https://i.pravatar.cc/100?img=13" }, fallback: "NR" },
    { source: { uri: "https://i.pravatar.cc/100?img=45" }, fallback: "LK" },
  ],
  onRsvp,
  onBack,
}: EventDetailScreenProps) {
  const haptics = useHaptic();
  const insets = useSafeAreaInsets();
  const [rsvp, setRsvp] = React.useState(false);

  return (
    <World primary="#65A30D">
    <SafeAreaView className="flex-1 bg-[#F4F5F9] dark:bg-[#111114]" edges={["top"]}>
      <ScrollView
        showsVerticalScrollIndicator={false}
        contentContainerStyle={{ paddingBottom: insets.bottom + 96 }}
      >
        {/* Cover — the venue/art sells the event. */}
        <Mount className="relative">
          <Image
            source={{ uri: coverUrl }}
            className="h-52 w-full bg-muted"
            accessibilityLabel="Event photo"
          />
          <View className="absolute inset-x-0 top-0 h-14">
            <StoryScrim edge="top" />
          </View>
          <View className="absolute inset-x-0 top-0 flex-row justify-between px-4 pt-2">
            <Glass interactive effect="clear" className="rounded-full">
            <Button
              variant="ghost"
              size="icon"
              haptic="light"
              onPress={() => onBack?.()}
              accessibilityLabel="Go back"
              className="h-10 w-10 rounded-full"
            >
              <Icon name="chevron-left" size="md" color="#F5F3F8" />
            </Button>
            </Glass>
            <Glass interactive effect="clear" className="rounded-full">
            <Button
              variant="ghost"
              size="icon"
              haptic="light"
              onPress={() => haptics.light()}
              accessibilityLabel="Share event"
              className="h-10 w-10 rounded-full"
            >
              <Icon name="share" size="sm" color="#F5F3F8" />
            </Button>
            </Glass>
          </View>
        </Mount>

        {/* Title + meta rows. */}
        <Mount delay={60} className="gap-1 px-4 pt-3">
          <Display className="text-3xl">{title}</Display>
          <View className="flex-row items-center gap-2 pt-1">
            <Icon name="calendar" size="sm" color="mutedForeground" />
            <Text className="text-sm">{date}</Text>
          </View>
          <View className="flex-row items-center gap-2">
            <Icon name="map-pin" size="sm" color="mutedForeground" />
            <Text className="text-sm">{venue}</Text>
          </View>
        </Mount>

        {/* Going — social proof inline. */}
        <Mount delay={120} className="mx-4 mt-3 flex-row items-center gap-2.5 overflow-hidden rounded-3xl bg-white p-3.5 dark:bg-[#1A1A20]">
          <AvatarGroup items={attendeeImages} size="sm" max={4} />
          <Text className="flex-1 text-sm">{going}</Text>
          <Text className="text-xs text-muted-foreground">{price}</Text>
        </Mount>
        {/* Scarcity line — events convert on urgency. */}
        <Mount delay={150} className="mx-4 mt-2 flex-row items-center gap-1.5">
          <View className="h-1.5 w-1.5 rounded-full bg-warning" />
          <Text variant="muted" className="text-xs">
            Selling fast — 40 tickets left at this price
          </Text>
        </Mount>

        {/* About — the pitch paragraph every event page needs. */}
        <Mount delay={180} className="gap-1 px-4 pt-4">
          <Text variant="h4">About</Text>
          <Text className="text-sm leading-5 text-muted-foreground">{about}</Text>
        </Mount>

        {/* Details — what attendees check. */}
        <View className="mx-4 mt-3 overflow-hidden rounded-3xl bg-white dark:bg-[#1A1A20]">
          <List.Item
            title="Hosted by"
            subtitle="Lumio team"
            showChevron
            haptic="light"
            onPress={() => haptics.light()}
          />
          <List.Separator className={SEPARATOR_INSET} />
          <List.Item
            title="Refunds"
            subtitle="Free cancellation until Oct 1"
            showChevron
            haptic="light"
            onPress={() => haptics.light()}
          />
        </View>
      </ScrollView>

      <StickyBottomBar>
        <View className="rounded-3xl bg-white p-3 shadow-sm dark:bg-[#1A1A20]">
        <Button
          tone={rsvp ? undefined : "inverse"}
          variant={rsvp ? "secondary" : "default"}
          haptic="light"
          onPress={() => {
            haptics.medium();
            setRsvp((r) => !r);
            onRsvp?.();
          }}
          accessibilityLabel={rsvp ? "You're going" : "RSVP"}
          accessibilityState={{ checked: rsvp }}
          className={rsvp ? "h-11 w-full" : "h-11 w-full bg-[#1B1B26]"}
        >
          {rsvp ? "You're going ✓" : "RSVP"}
        </Button>
        </View>
      </StickyBottomBar>
    </SafeAreaView>
    </World>
  );
}
EventDetailScreen.displayName = "EventDetailScreen";
agent prompt — paste into Claude Code, Cursor, Devin…
Recreate the "Event Detail Screen" screen in React Native using LumioUI.

Goal: Event cover + meta + RSVP 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 misc-event-detail
```

Or pull just the components: `npx lumioui add avatar-group button glass icon image list 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

### `avatar-group` — Overlapping avatar stack with a border ring per avatar, staggered pop-in, and a tappable "+N" overflow bubble
- `<AvatarGroup>` ×1

### `button` — Tactile pill button with press spring, ink wash and async loading.
- `<Button>` ×3

### `glass` — iOS 26 liquid-glass surface — real glass via expo-glass-effect (Expo Go) or @callstack/liquid-glass (dev builds), SVG refraction + specular rim on web, frosted fallback elsewhere; GlassContainer melts adjacent panes into one blob
- `<Glass>` ×2

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

### `image` — Cached image with placeholder, fallback and aspect handling.
- `<Image>` ×1

### `list` — Settings-style rows with separators and press feedback.
- imported but not rendered directly — likely used through a sibling or as a utility

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

## 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/misc/event-detail.tsx` exporting EventDetailScreen. 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 { ScrollView, View, type ImageSourcePropType } from "react-native";
import { SafeAreaView, useSafeAreaInsets } from "react-native-safe-area-context";
import { AvatarGroup, Button, Glass, Icon, Image, List, Text } from "@lumioui/ui";
import { useHaptic } from "@lumioui/core";
import { Display, Mount, SEPARATOR_INSET, StickyBottomBar, StoryScrim, World } from "../shared";

export interface EventDetailScreenProps {
  title?: string;
  date?: string;
  venue?: string;
  price?: string;
  going?: string;
  coverUrl?: string;
  about?: string;
  attendeeImages?: { source?: ImageSourcePropType; fallback?: string }[];
  onRsvp?: () => void;
  onBack?: () => void;
}

/** Event detail — cover, date/venue rows, going avatars, RSVP. */
export function EventDetailScreen({
  title = "Lumio Design Meetup",
  date = "Thu, Oct 2 · 7:00 PM",
  venue = "Warehouse 9, Lisbon",
  price = "Free",
  going = "48 going",
  coverUrl = "https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop&q=70&auto=format",
  about = "An evening of design engineering: live teardowns of three shipped components, a motion clinic, then drinks on the terrace. Bring a component you are stuck on — we will pick two to fix on stage.",
  attendeeImages = [
    { source: { uri: "https://i.pravatar.cc/100?img=32" }, fallback: "PN" },
    { source: { uri: "https://i.pravatar.cc/100?img=59" }, fallback: "MO" },
    { source: { uri: "https://i.pravatar.cc/100?img=13" }, fallback: "NR" },
    { source: { uri: "https://i.pravatar.cc/100?img=45" }, fallback: "LK" },
  ],
  onRsvp,
  onBack,
}: EventDetailScreenProps) {
  const haptics = useHaptic();
  const insets = useSafeAreaInsets();
  const [rsvp, setRsvp] = React.useState(false);

  return (
    <World primary="#65A30D">
    <SafeAreaView className="flex-1 bg-[#F4F5F9] dark:bg-[#111114]" edges={["top"]}>
      <ScrollView
        showsVerticalScrollIndicator={false}
        contentContainerStyle={{ paddingBottom: insets.bottom + 96 }}
      >
        {/* Cover — the venue/art sells the event. */}
        <Mount className="relative">
          <Image
            source={{ uri: coverUrl }}
            className="h-52 w-full bg-muted"
            accessibilityLabel="Event photo"
          />
          <View className="absolute inset-x-0 top-0 h-14">
            <StoryScrim edge="top" />
          </View>
          <View className="absolute inset-x-0 top-0 flex-row justify-between px-4 pt-2">
            <Glass interactive effect="clear" className="rounded-full">
            <Button
              variant="ghost"
              size="icon"
              haptic="light"
              onPress={() => onBack?.()}
              accessibilityLabel="Go back"
              className="h-10 w-10 rounded-full"
            >
              <Icon name="chevron-left" size="md" color="#F5F3F8" />
            </Button>
            </Glass>
            <Glass interactive effect="clear" className="rounded-full">
            <Button
              variant="ghost"
              size="icon"
              haptic="light"
              onPress={() => haptics.light()}
              accessibilityLabel="Share event"
              className="h-10 w-10 rounded-full"
            >
              <Icon name="share" size="sm" color="#F5F3F8" />
            </Button>
            </Glass>
          </View>
        </Mount>

        {/* Title + meta rows. */}
        <Mount delay={60} className="gap-1 px-4 pt-3">
          <Display className="text-3xl">{title}</Display>
          <View className="flex-row items-center gap-2 pt-1">
            <Icon name="calendar" size="sm" color="mutedForeground" />
            <Text className="text-sm">{date}</Text>
          </View>
          <View className="flex-row items-center gap-2">
            <Icon name="map-pin" size="sm" color="mutedForeground" />
            <Text className="text-sm">{venue}</Text>
          </View>
        </Mount>

        {/* Going — social proof inline. */}
        <Mount delay={120} className="mx-4 mt-3 flex-row items-center gap-2.5 overflow-hidden rounded-3xl bg-white p-3.5 dark:bg-[#1A1A20]">
          <AvatarGroup items={attendeeImages} size="sm" max={4} />
          <Text className="flex-1 text-sm">{going}</Text>
          <Text className="text-xs text-muted-foreground">{price}</Text>
        </Mount>
        {/* Scarcity line — events convert on urgency. */}
        <Mount delay={150} className="mx-4 mt-2 flex-row items-center gap-1.5">
          <View className="h-1.5 w-1.5 rounded-full bg-warning" />
          <Text variant="muted" className="text-xs">
            Selling fast — 40 tickets left at this price
          </Text>
        </Mount>

        {/* About — the pitch paragraph every event page needs. */}
        <Mount delay={180} className="gap-1 px-4 pt-4">
          <Text variant="h4">About</Text>
          <Text className="text-sm leading-5 text-muted-foreground">{about}</Text>
        </Mount>

        {/* Details — what attendees check. */}
        <View className="mx-4 mt-3 overflow-hidden rounded-3xl bg-white dark:bg-[#1A1A20]">
          <List.Item
            title="Hosted by"
            subtitle="Lumio team"
            showChevron
            haptic="light"
            onPress={() => haptics.light()}
          />
          <List.Separator className={SEPARATOR_INSET} />
          <List.Item
            title="Refunds"
            subtitle="Free cancellation until Oct 1"
            showChevron
            haptic="light"
            onPress={() => haptics.light()}
          />
        </View>
      </ScrollView>

      <StickyBottomBar>
        <View className="rounded-3xl bg-white p-3 shadow-sm dark:bg-[#1A1A20]">
        <Button
          tone={rsvp ? undefined : "inverse"}
          variant={rsvp ? "secondary" : "default"}
          haptic="light"
          onPress={() => {
            haptics.medium();
            setRsvp((r) => !r);
            onRsvp?.();
          }}
          accessibilityLabel={rsvp ? "You're going" : "RSVP"}
          accessibilityState={{ checked: rsvp }}
          className={rsvp ? "h-11 w-full" : "h-11 w-full bg-[#1B1B26]"}
        >
          {rsvp ? "You're going ✓" : "RSVP"}
        </Button>
        </View>
      </StickyBottomBar>
    </SafeAreaView>
    </World>
  );
}
EventDetailScreen.displayName = "EventDetailScreen";
```

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