Dish hero with save affordance, author row, time/servings/kcal stat triplet, checkable ingredients with gathered counter, numbered method, sticky start-cooking bar
import * as React from "react";
import { useState } from "react";
import { Pressable, ScrollView, View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { Avatar, Badge, Button, Checkbox, Glass, Icon, Image, Separator, Text } from "@lumioui/ui";
import { cn, useHaptic } from "@lumioui/core";
import { BLOCK_STAGGER, Display, Mount, StickyBottomBar, World } from "../shared";
export interface RecipeIngredient {
name: string;
/** Amount line — "400 ml", "2 pcs". */
amount?: string;
}
export interface RecipeAuthor {
name: string;
avatarUrl?: string;
}
export interface Recipe {
title: string;
/** One-line deck under the title. */
summary?: string;
author?: RecipeAuthor;
imageUrl?: string;
/** Stat triplet — rendered as icon + value + label. */
totalTime?: string;
servings?: number;
calories?: number;
difficulty?: "Easy" | "Medium" | "Hard";
ingredients?: RecipeIngredient[];
steps?: string[];
}
export interface RecipeDetailScreenProps {
recipe?: Recipe;
/** Ingredient keys pre-checked — pantry items you already have. */
defaultChecked?: number[];
onBack?: () => void;
onToggleSave?: (recipe: Recipe, saved: boolean) => void;
onAuthorPress?: (author: RecipeAuthor) => void;
onStartCooking?: (recipe: Recipe) => void;
}
/** Pinned Unsplash food photography — each id visually verified to show
* the named dish. */
const FOOD_PHOTOS = {
ramen: "photo-1569718212165-3a8278d5f624",
} as const;
const img = (p: keyof typeof FOOD_PHOTOS, w = 900, h = 675) =>
`https://images.unsplash.com/${FOOD_PHOTOS[p]}?w=${w}&h=${h}&fit=crop&q=70&auto=format`;
const DEFAULT_RECIPE: Recipe = {
title: "Miso Ramen with Soft Egg",
summary: "A weeknight bowl — rich miso broth, chewy noodles, jammy egg.",
author: { name: "Kasia Nowak", avatarUrl: "https://i.pravatar.cc/150?img=44" },
imageUrl: img("ramen"),
totalTime: "35 min",
servings: 2,
calories: 620,
difficulty: "Medium",
ingredients: [
{ name: "Fresh ramen noodles", amount: "300 g" },
{ name: "White miso paste", amount: "3 tbsp" },
{ name: "Chicken stock", amount: "1 L" },
{ name: "Soft-boiled eggs", amount: "2" },
{ name: "Chashu pork belly", amount: "150 g" },
{ name: "Spring onions", amount: "2 stalks" },
{ name: "Sweet corn", amount: "80 g" },
{ name: "Nori sheet", amount: "1" },
{ name: "Sesame oil", amount: "1 tsp" },
],
steps: [
"Simmer the stock with ginger and garlic for 10 minutes.",
"Whisk the miso paste into a ladle of hot stock, then stir back in.",
"Cook the noodles 90 seconds shy of the packet time; drain well.",
"Warm the chashu in the broth, then slice the eggs.",
"Assemble: noodles, broth, chashu, egg, corn, spring onion, nori.",
"Finish with a drizzle of sesame oil and serve immediately.",
],
};
/** One recipe stat — icon + bold value + muted label. */
function Stat({
icon,
value,
label,
}: {
icon: "clock" | "users" | "zap";
value: string;
label: string;
}) {
return (
<View className="flex-1 items-center gap-1">
<Icon name={icon} size="md" color="mutedForeground" />
<Text variant="small" className="font-semibold tabular-nums">
{value}
</Text>
<Text variant="muted" className="text-xs">
{label}
</Text>
</View>
);
}
Stat.displayName = "Stat";
/** RecipeDetail — full-bleed dish hero, author row, stat triplet,
* checkable ingredients list, numbered method, sticky start bar. */
export function RecipeDetailScreen({
recipe = DEFAULT_RECIPE,
defaultChecked = [1, 2],
onBack,
onToggleSave,
onAuthorPress,
onStartCooking,
}: RecipeDetailScreenProps) {
const haptics = useHaptic();
const insets = useSafeAreaInsets();
const [saved, setSaved] = useState(false);
const [checked, setChecked] = useState<Set<number>>(() => new Set(defaultChecked));
const ingredients = recipe.ingredients ?? [];
const steps = recipe.steps ?? [];
const checkedCount = ingredients.filter((_, i) => checked.has(i)).length;
const toggleIngredient = (index: number) => (value: boolean) => {
setChecked((prev) => {
const copy = new Set(prev);
if (value) copy.add(index);
else copy.delete(index);
return copy;
});
};
return (
<World primary="#65A30D">
<View className="flex-1 bg-[#F4F5F9] dark:bg-[#111114]">
<ScrollView
className="flex-1"
showsVerticalScrollIndicator={false}
contentContainerStyle={{ paddingBottom: insets.bottom + 96 }}
// "never" keeps the hero edge-to-edge under the status bar.
contentInsetAdjustmentBehavior="never"
>
<View>
<Image
source={recipe.imageUrl ? { uri: recipe.imageUrl } : undefined}
rounded="none"
aspectRatio={4 / 3}
className="w-full"
accessibilityLabel={`Photo of ${recipe.title}`}
/>
{onBack ? (
<Glass interactive effect="regular" style={{ top: insets.top + 8 }} className="absolute left-4 rounded-full">
<Pressable
onPress={() => {
haptics.light();
onBack();
}}
accessibilityRole="button"
accessibilityLabel="Go back"
hitSlop={12}
className="h-10 w-10 items-center justify-center rounded-full"
>
<Icon name="chevron-left" size="md" color="foreground" />
</Pressable>
</Glass>
) : null}
<Glass interactive effect="regular" style={{ top: insets.top + 8 }} className="absolute right-4 rounded-full">
<Pressable
onPress={() => {
haptics.selection();
setSaved((s) => !s);
onToggleSave?.(recipe, !saved);
}}
accessibilityRole="button"
accessibilityLabel={saved ? `Remove ${recipe.title} from saved recipes` : `Save ${recipe.title}`}
accessibilityState={{ selected: saved }}
hitSlop={12}
className="h-10 w-10 items-center justify-center rounded-full"
>
<Icon name="bookmark" size="md" color={saved ? "primary" : "foreground"} filled={saved} />
</Pressable>
</Glass>
{recipe.difficulty ? (
<Badge variant="secondary" className="absolute bottom-4 left-4">
{recipe.difficulty}
</Badge>
) : null}
</View>
<View className="gap-6 px-6 pt-5">
{/* Title / deck / author */}
<Mount>
<View className="gap-2">
<Display className="text-3xl">{recipe.title}</Display>
{recipe.summary ? <Text variant="muted">{recipe.summary}</Text> : null}
{recipe.author ? (
<Pressable
onPress={() => {
haptics.light();
onAuthorPress?.(recipe.author!);
}}
disabled={!onAuthorPress}
accessibilityRole={onAuthorPress ? "button" : undefined}
accessibilityLabel={`Recipe by ${recipe.author.name}`}
hitSlop={8}
className="min-h-11 flex-row items-center gap-2 self-start"
>
<Avatar
size="sm"
source={recipe.author.avatarUrl ? { uri: recipe.author.avatarUrl } : undefined}
fallback={recipe.author.name}
accessibilityElementsHidden
importantForAccessibility="no"
/>
<Text variant="small" className="text-muted-foreground">
Recipe by {recipe.author.name}
</Text>
</Pressable>
) : null}
{/* Social proof — recipe apps lead with cook counts. */}
<View className="flex-row items-center gap-1.5">
<Icon name="flame" size="sm" color="warning" />
<Text variant="muted" className="text-xs">
12.4k cooks made this · 94% would again
</Text>
</View>
</View>
</Mount>
{/* Stat triplet — time, servings, calories. */}
<Mount delay={BLOCK_STAGGER}>
<View className="flex-row overflow-hidden rounded-3xl bg-white px-4 py-3.5 dark:bg-[#1A1A20]">
{recipe.totalTime ? (
<Stat icon="clock" value={recipe.totalTime} label="Total time" />
) : null}
{recipe.servings != null ? (
<Stat icon="users" value={`${recipe.servings}`} label="Servings" />
) : null}
{recipe.calories != null ? (
<Stat icon="zap" value={`${recipe.calories}`} label="kcal / serving" />
) : null}
</View>
</Mount>
{/* Ingredients — a real checklist, not a bullet list. */}
{ingredients.length > 0 ? (
<Mount delay={BLOCK_STAGGER * 2}>
<View>
<View className="flex-row items-baseline justify-between pb-2">
<Text variant="small" className="font-semibold">
Ingredients
</Text>
<Text
variant="muted"
className="text-xs tabular-nums"
accessibilityLabel={`${checkedCount} of ${ingredients.length} ingredients checked`}
>
{checkedCount} of {ingredients.length}
</Text>
</View>
<View className="overflow-hidden rounded-3xl bg-white px-4 py-2 dark:bg-[#1A1A20]">
{ingredients.map((ingredient, i) => (
<View key={`${ingredient.name}-${i}`}>
{i > 0 ? <Separator className="my-0.5" /> : null}
<View className="flex-row items-center gap-3 py-2.5">
<Checkbox
checked={checked.has(i)}
onCheckedChange={toggleIngredient(i)}
accessibilityLabel={`${ingredient.name}${ingredient.amount ? `, ${ingredient.amount}` : ""}`}
/>
<Text
variant="small"
className={cn(
"flex-1",
checked.has(i) && "text-muted-foreground line-through"
)}
>
{ingredient.name}
</Text>
{ingredient.amount ? (
<Text variant="muted" className="text-xs tabular-nums">
{ingredient.amount}
</Text>
) : null}
</View>
</View>
))}
</View>
</View>
</Mount>
) : null}
{/* Method — numbered steps; the numeral is the meaning. */}
{steps.length > 0 ? (
<Mount delay={BLOCK_STAGGER * 3}>
<View className="gap-1">
<Text variant="small" className="pb-2 font-semibold">
Method
</Text>
{steps.map((step, i) => (
<View
key={i}
className="min-h-11 flex-row gap-3 py-2"
accessibilityLabel={`Step ${i + 1}: ${step}`}
>
<View
className="h-7 w-7 items-center justify-center rounded-full bg-[#EDF8C4]"
accessibilityElementsHidden
importantForAccessibility="no"
>
<Text variant="small" className="font-semibold tabular-nums text-[#65A30D]">
{i + 1}
</Text>
</View>
<Text variant="small" className="flex-1 leading-5 text-muted-foreground">
{step}
</Text>
</View>
))}
</View>
</Mount>
) : null}
</View>
</ScrollView>
{onStartCooking ? (
<StickyBottomBar>
<Button
tone="inverse"
haptic="medium"
onPress={() => onStartCooking(recipe)}
accessibilityLabel={`Start cooking ${recipe.title}`}
icon={<Icon name="play" size="sm" color="#BEF04C" />}
className="bg-[#1B1B26]">
Start cooking
</Button>
</StickyBottomBar>
) : null}
</View>
</World>
);
}
RecipeDetailScreen.displayName = "RecipeDetailScreen";
Recreate the "Recipe Detail Screen" screen in React Native using LumioUI.
Goal: Dish hero with save affordance, author row, time/servings/kcal stat triplet, checkable ingredients with gathered counter, numbered method, sticky start-cooking bar 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 food-recipe-detail
```
Or pull just the components: `npx lumioui add avatar badge button checkbox glass icon image separator 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` — Circular user image with fallback initials and status dot.
- `<Avatar>` ×1
### `badge` — Compact status pill with variants, icons and pulse option.
- `<Badge>` ×1
### `button` — Tactile pill button with press spring, ink wash and async loading.
- `<Button>` ×1
### `checkbox` — Animated check box with haptic tick and error state.
- `<Checkbox>` ×1
### `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>` ×5
### `image` — Cached image with placeholder, fallback and aspect handling.
- `<Image>` ×1
### `separator` — Hairline rule with orientation and spacing control.
- `<Separator>` ×1
### `text` — Themed type scale from caption to display.
- `<Text>` ×12
## 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/recipe-detail.tsx` exporting RecipeDetailScreen. 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 { Pressable, ScrollView, View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { Avatar, Badge, Button, Checkbox, Glass, Icon, Image, Separator, Text } from "@lumioui/ui";
import { cn, useHaptic } from "@lumioui/core";
import { BLOCK_STAGGER, Display, Mount, StickyBottomBar, World } from "../shared";
export interface RecipeIngredient {
name: string;
/** Amount line — "400 ml", "2 pcs". */
amount?: string;
}
export interface RecipeAuthor {
name: string;
avatarUrl?: string;
}
export interface Recipe {
title: string;
/** One-line deck under the title. */
summary?: string;
author?: RecipeAuthor;
imageUrl?: string;
/** Stat triplet — rendered as icon + value + label. */
totalTime?: string;
servings?: number;
calories?: number;
difficulty?: "Easy" | "Medium" | "Hard";
ingredients?: RecipeIngredient[];
steps?: string[];
}
export interface RecipeDetailScreenProps {
recipe?: Recipe;
/** Ingredient keys pre-checked — pantry items you already have. */
defaultChecked?: number[];
onBack?: () => void;
onToggleSave?: (recipe: Recipe, saved: boolean) => void;
onAuthorPress?: (author: RecipeAuthor) => void;
onStartCooking?: (recipe: Recipe) => void;
}
/** Pinned Unsplash food photography — each id visually verified to show
* the named dish. */
const FOOD_PHOTOS = {
ramen: "photo-1569718212165-3a8278d5f624",
} as const;
const img = (p: keyof typeof FOOD_PHOTOS, w = 900, h = 675) =>
`https://images.unsplash.com/${FOOD_PHOTOS[p]}?w=${w}&h=${h}&fit=crop&q=70&auto=format`;
const DEFAULT_RECIPE: Recipe = {
title: "Miso Ramen with Soft Egg",
summary: "A weeknight bowl — rich miso broth, chewy noodles, jammy egg.",
author: { name: "Kasia Nowak", avatarUrl: "https://i.pravatar.cc/150?img=44" },
imageUrl: img("ramen"),
totalTime: "35 min",
servings: 2,
calories: 620,
difficulty: "Medium",
ingredients: [
{ name: "Fresh ramen noodles", amount: "300 g" },
{ name: "White miso paste", amount: "3 tbsp" },
{ name: "Chicken stock", amount: "1 L" },
{ name: "Soft-boiled eggs", amount: "2" },
{ name: "Chashu pork belly", amount: "150 g" },
{ name: "Spring onions", amount: "2 stalks" },
{ name: "Sweet corn", amount: "80 g" },
{ name: "Nori sheet", amount: "1" },
{ name: "Sesame oil", amount: "1 tsp" },
],
steps: [
"Simmer the stock with ginger and garlic for 10 minutes.",
"Whisk the miso paste into a ladle of hot stock, then stir back in.",
"Cook the noodles 90 seconds shy of the packet time; drain well.",
"Warm the chashu in the broth, then slice the eggs.",
"Assemble: noodles, broth, chashu, egg, corn, spring onion, nori.",
"Finish with a drizzle of sesame oil and serve immediately.",
],
};
/** One recipe stat — icon + bold value + muted label. */
function Stat({
icon,
value,
label,
}: {
icon: "clock" | "users" | "zap";
value: string;
label: string;
}) {
return (
<View className="flex-1 items-center gap-1">
<Icon name={icon} size="md" color="mutedForeground" />
<Text variant="small" className="font-semibold tabular-nums">
{value}
</Text>
<Text variant="muted" className="text-xs">
{label}
</Text>
</View>
);
}
Stat.displayName = "Stat";
/** RecipeDetail — full-bleed dish hero, author row, stat triplet,
* checkable ingredients list, numbered method, sticky start bar. */
export function RecipeDetailScreen({
recipe = DEFAULT_RECIPE,
defaultChecked = [1, 2],
onBack,
onToggleSave,
onAuthorPress,
onStartCooking,
}: RecipeDetailScreenProps) {
const haptics = useHaptic();
const insets = useSafeAreaInsets();
const [saved, setSaved] = useState(false);
const [checked, setChecked] = useState<Set<number>>(() => new Set(defaultChecked));
const ingredients = recipe.ingredients ?? [];
const steps = recipe.steps ?? [];
const checkedCount = ingredients.filter((_, i) => checked.has(i)).length;
const toggleIngredient = (index: number) => (value: boolean) => {
setChecked((prev) => {
const copy = new Set(prev);
if (value) copy.add(index);
else copy.delete(index);
return copy;
});
};
return (
<World primary="#65A30D">
<View className="flex-1 bg-[#F4F5F9] dark:bg-[#111114]">
<ScrollView
className="flex-1"
showsVerticalScrollIndicator={false}
contentContainerStyle={{ paddingBottom: insets.bottom + 96 }}
// "never" keeps the hero edge-to-edge under the status bar.
contentInsetAdjustmentBehavior="never"
>
<View>
<Image
source={recipe.imageUrl ? { uri: recipe.imageUrl } : undefined}
rounded="none"
aspectRatio={4 / 3}
className="w-full"
accessibilityLabel={`Photo of ${recipe.title}`}
/>
{onBack ? (
<Glass interactive effect="regular" style={{ top: insets.top + 8 }} className="absolute left-4 rounded-full">
<Pressable
onPress={() => {
haptics.light();
onBack();
}}
accessibilityRole="button"
accessibilityLabel="Go back"
hitSlop={12}
className="h-10 w-10 items-center justify-center rounded-full"
>
<Icon name="chevron-left" size="md" color="foreground" />
</Pressable>
</Glass>
) : null}
<Glass interactive effect="regular" style={{ top: insets.top + 8 }} className="absolute right-4 rounded-full">
<Pressable
onPress={() => {
haptics.selection();
setSaved((s) => !s);
onToggleSave?.(recipe, !saved);
}}
accessibilityRole="button"
accessibilityLabel={saved ? `Remove ${recipe.title} from saved recipes` : `Save ${recipe.title}`}
accessibilityState={{ selected: saved }}
hitSlop={12}
className="h-10 w-10 items-center justify-center rounded-full"
>
<Icon name="bookmark" size="md" color={saved ? "primary" : "foreground"} filled={saved} />
</Pressable>
</Glass>
{recipe.difficulty ? (
<Badge variant="secondary" className="absolute bottom-4 left-4">
{recipe.difficulty}
</Badge>
) : null}
</View>
<View className="gap-6 px-6 pt-5">
{/* Title / deck / author */}
<Mount>
<View className="gap-2">
<Display className="text-3xl">{recipe.title}</Display>
{recipe.summary ? <Text variant="muted">{recipe.summary}</Text> : null}
{recipe.author ? (
<Pressable
onPress={() => {
haptics.light();
onAuthorPress?.(recipe.author!);
}}
disabled={!onAuthorPress}
accessibilityRole={onAuthorPress ? "button" : undefined}
accessibilityLabel={`Recipe by ${recipe.author.name}`}
hitSlop={8}
className="min-h-11 flex-row items-center gap-2 self-start"
>
<Avatar
size="sm"
source={recipe.author.avatarUrl ? { uri: recipe.author.avatarUrl } : undefined}
fallback={recipe.author.name}
accessibilityElementsHidden
importantForAccessibility="no"
/>
<Text variant="small" className="text-muted-foreground">
Recipe by {recipe.author.name}
</Text>
</Pressable>
) : null}
{/* Social proof — recipe apps lead with cook counts. */}
<View className="flex-row items-center gap-1.5">
<Icon name="flame" size="sm" color="warning" />
<Text variant="muted" className="text-xs">
12.4k cooks made this · 94% would again
</Text>
</View>
</View>
</Mount>
{/* Stat triplet — time, servings, calories. */}
<Mount delay={BLOCK_STAGGER}>
<View className="flex-row overflow-hidden rounded-3xl bg-white px-4 py-3.5 dark:bg-[#1A1A20]">
{recipe.totalTime ? (
<Stat icon="clock" value={recipe.totalTime} label="Total time" />
) : null}
{recipe.servings != null ? (
<Stat icon="users" value={`${recipe.servings}`} label="Servings" />
) : null}
{recipe.calories != null ? (
<Stat icon="zap" value={`${recipe.calories}`} label="kcal / serving" />
) : null}
</View>
</Mount>
{/* Ingredients — a real checklist, not a bullet list. */}
{ingredients.length > 0 ? (
<Mount delay={BLOCK_STAGGER * 2}>
<View>
<View className="flex-row items-baseline justify-between pb-2">
<Text variant="small" className="font-semibold">
Ingredients
</Text>
<Text
variant="muted"
className="text-xs tabular-nums"
accessibilityLabel={`${checkedCount} of ${ingredients.length} ingredients checked`}
>
{checkedCount} of {ingredients.length}
</Text>
</View>
<View className="overflow-hidden rounded-3xl bg-white px-4 py-2 dark:bg-[#1A1A20]">
{ingredients.map((ingredient, i) => (
<View key={`${ingredient.name}-${i}`}>
{i > 0 ? <Separator className="my-0.5" /> : null}
<View className="flex-row items-center gap-3 py-2.5">
<Checkbox
checked={checked.has(i)}
onCheckedChange={toggleIngredient(i)}
accessibilityLabel={`${ingredient.name}${ingredient.amount ? `, ${ingredient.amount}` : ""}`}
/>
<Text
variant="small"
className={cn(
"flex-1",
checked.has(i) && "text-muted-foreground line-through"
)}
>
{ingredient.name}
</Text>
{ingredient.amount ? (
<Text variant="muted" className="text-xs tabular-nums">
{ingredient.amount}
</Text>
) : null}
</View>
</View>
))}
</View>
</View>
</Mount>
) : null}
{/* Method — numbered steps; the numeral is the meaning. */}
{steps.length > 0 ? (
<Mount delay={BLOCK_STAGGER * 3}>
<View className="gap-1">
<Text variant="small" className="pb-2 font-semibold">
Method
</Text>
{steps.map((step, i) => (
<View
key={i}
className="min-h-11 flex-row gap-3 py-2"
accessibilityLabel={`Step ${i + 1}: ${step}`}
>
<View
className="h-7 w-7 items-center justify-center rounded-full bg-[#EDF8C4]"
accessibilityElementsHidden
importantForAccessibility="no"
>
<Text variant="small" className="font-semibold tabular-nums text-[#65A30D]">
{i + 1}
</Text>
</View>
<Text variant="small" className="flex-1 leading-5 text-muted-foreground">
{step}
</Text>
</View>
))}
</View>
</Mount>
) : null}
</View>
</ScrollView>
{onStartCooking ? (
<StickyBottomBar>
<Button
tone="inverse"
haptic="medium"
onPress={() => onStartCooking(recipe)}
accessibilityLabel={`Start cooking ${recipe.title}`}
icon={<Icon name="play" size="sm" color="#BEF04C" />}
className="bg-[#1B1B26]">
Start cooking
</Button>
</StickyBottomBar>
) : null}
</View>
</World>
);
}
RecipeDetailScreen.displayName = "RecipeDetailScreen";
```
Screen: https://lumioui.dev/screens/food-recipe-detail