Nouri Onboarding screen.
import { View } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import { Button, Text } from "@lumioui/ui";
import { useHaptic } from "@lumioui/core";
import { Mount, Press } from "../shared";
export interface NouriOnboardingScreenProps {
onNext?: () => void;
}
export function NouriOnboardingScreen({ onNext }: NouriOnboardingScreenProps) {
const haptics = useHaptic();
const complete = () => {
haptics.success();
onNext?.();
};
return (
<View className="flex-1 bg-[#111114]">
<SafeAreaView className="flex-1 items-center justify-between" edges={["top", "bottom"]}>
<Mount delay={60} className="mt-10">
<Text className="text-[17px] font-semibold font-bold text-[26px] italic text-white">
Lumio
</Text>
</Mount>
<View className="items-center px-10">
<Mount delay={160}>
<Text className="text-[30px] font-bold leading-[38px] text-center text-[38px] leading-[44px] text-white">
{"Build 🍳 Healthier "}
<Text className="text-[30px] font-bold leading-[38px] text-[38px] text-white/35">
Habits
</Text>
{" Every\nSingle Day 🥑"}
</Text>
</Mount>
<Mount delay={260} className="mt-5 px-4">
<Text className="text-[15px] text-center leading-6 text-white/55">
Monitor your streaks, nutrition score, and progress toward a healthier you.
</Text>
</Mount>
<Mount delay={320} className="mt-7 flex-row gap-1.5">
{[0, 1, 2].map((i) => (
<View key={i} className={i === 0 ? "h-1.5 w-5 rounded-full bg-white" : "h-1.5 w-1.5 rounded-full bg-white/25"} />
))}
</Mount>
</View>
<View className="w-full px-6 pb-2">
<Mount delay={380}>
<Button size="lg" onPress={complete} className="w-full bg-white" textClassName="text-[#111114]" >Get Started</Button>
<Press onPress={complete} className="mt-3 h-14 w-full items-center justify-center rounded-full bg-white/[0.08]">
<Text className="text-[15px] font-semibold text-white">I have an account</Text>
</Press>
</Mount>
<Mount delay={440} className="mt-6 flex-row items-center justify-center gap-8 pb-1">
<Text className="text-[12px] text-white/40">Terms of Use</Text>
<Text className="text-[12px] text-white/40">Privacy Policy</Text>
</Mount>
</View>
</SafeAreaView>
</View>
);
}
Recreate the "Nouri Onboarding" screen in React Native using LumioUI.
Goal: Nouri Onboarding screen. 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 auth-nouri-onboarding
```
Or pull just the components: `npx lumioui add button 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
### `button` — Tactile pill button with press spring, ink wash and async loading.
- `<Button>` ×1
### `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/auth/nouri-onboarding.tsx` exporting NouriOnboardingScreen. 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 { View } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import { Button, Text } from "@lumioui/ui";
import { useHaptic } from "@lumioui/core";
import { Mount, Press } from "../shared";
export interface NouriOnboardingScreenProps {
onNext?: () => void;
}
export function NouriOnboardingScreen({ onNext }: NouriOnboardingScreenProps) {
const haptics = useHaptic();
const complete = () => {
haptics.success();
onNext?.();
};
return (
<View className="flex-1 bg-[#111114]">
<SafeAreaView className="flex-1 items-center justify-between" edges={["top", "bottom"]}>
<Mount delay={60} className="mt-10">
<Text className="text-[17px] font-semibold font-bold text-[26px] italic text-white">
Lumio
</Text>
</Mount>
<View className="items-center px-10">
<Mount delay={160}>
<Text className="text-[30px] font-bold leading-[38px] text-center text-[38px] leading-[44px] text-white">
{"Build 🍳 Healthier "}
<Text className="text-[30px] font-bold leading-[38px] text-[38px] text-white/35">
Habits
</Text>
{" Every\nSingle Day 🥑"}
</Text>
</Mount>
<Mount delay={260} className="mt-5 px-4">
<Text className="text-[15px] text-center leading-6 text-white/55">
Monitor your streaks, nutrition score, and progress toward a healthier you.
</Text>
</Mount>
<Mount delay={320} className="mt-7 flex-row gap-1.5">
{[0, 1, 2].map((i) => (
<View key={i} className={i === 0 ? "h-1.5 w-5 rounded-full bg-white" : "h-1.5 w-1.5 rounded-full bg-white/25"} />
))}
</Mount>
</View>
<View className="w-full px-6 pb-2">
<Mount delay={380}>
<Button size="lg" onPress={complete} className="w-full bg-white" textClassName="text-[#111114]" >Get Started</Button>
<Press onPress={complete} className="mt-3 h-14 w-full items-center justify-center rounded-full bg-white/[0.08]">
<Text className="text-[15px] font-semibold text-white">I have an account</Text>
</Press>
</Mount>
<Mount delay={440} className="mt-6 flex-row items-center justify-center gap-8 pb-1">
<Text className="text-[12px] text-white/40">Terms of Use</Text>
<Text className="text-[12px] text-white/40">Privacy Policy</Text>
</Mount>
</View>
</SafeAreaView>
</View>
);
}
```
Screen: https://lumioui.dev/screens/auth-nouri-onboarding