Example app
Example app
Section titled “Example app”The monorepo includes apps/example — an Expo Router app with one screen per component. Use it for native visual QA; docs previews are CSS staging and do not replace simulator/device checks.
Run locally
Section titled “Run locally”From the repository root:
bun installcd apps/examplebun run ios # iOS simulator (dev client)# orbun run android # Android emulator# orbun run start # Expo Go / dev client pickerRequirements match Getting started: React Native 0.83+, Reanimated, Gesture Handler, Safe Area Context.
What to verify
Section titled “What to verify”Overlays (Modal / Dialog / AlertDialog)
Section titled “Overlays (Modal / Dialog / AlertDialog)”| Screen | What to check |
|---|---|
| Modal | Host inset, form modal keyboard, full-screen mode |
| Dialog | Confirmation + form-in-dialog layouts |
| AlertDialog | Standard + destructive confirmations |
See Modal, Dialog, AlertDialog.
Status & feedback
Section titled “Status & feedback”| Screen | What to check |
|---|---|
| Alert | Compound AlertTitle + Typography severity colors |
| Toast | Action label contrast; status variants |
| Snackbar | Elevated surface on app background |
| Badge / Chip | Visible fills on default app canvas |
High-traffic patterns
Section titled “High-traffic patterns”- Button, Input, Form, Card — copy and spacing agents should mirror
- BottomSheet, Drawer — gesture and safe-area behavior
Device QA checklist
Section titled “Device QA checklist”Full pass/fail checklist (iPhone + Android, light + dark): see the repo file .planning/device-qa-checklist.md or the Visual Baseline → Native QA section.
For AI agents
Section titled “For AI agents”When generating UI:
- Prefer patterns from example app source (
apps/example/app/components/*.tsx) over inventing layout. - Use compound helpers (
ModalHeader,ModalFooter,AlertTitle) — not manual white boxes or hardcoded padding. - Confirm overlays and status surfaces on the example app before claiming “production ready.”
Related
Section titled “Related”- Visual Baseline — token-aligned CSS reference
- Component Status — stability matrix
- AI usage — agent guidelines