Applies to every preview on the site.
Installation
One command copies the source into your app — you own the code and can change anything.
After you add the file, import it like any local component:
import { ListItem } from "@/components/ui/list-item";Or add it with the CLI (installs any missing peers):
Usage
useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.Like this? There's a lot more in Pro Pro
12 full screens built from the same kit — install them the same way.
Props
| Prop | Type | Default |
|---|---|---|
| title Main text (required). | string | — |
| subtitle One muted line under the title. | string | — |
| description Longer muted text, clamped to numberOfLines. | string | — |
| numberOfLines Lines of description shown. | number | 2 |
| meta Small text at the end of the title row, e.g. a time. | string | — |
| icon Built-in glyph (user, bell, lock, shield, mail, card, help, logout, moon, globe, star, trash, settings, heart, phone, wifi) or your own, drawn in a rounded tile. | ListItemIconName | ({ color, size }) => ReactNode | — |
| iconColor Tile colour (danger when destructive). | string | accent |
| iconVariant White glyph on a solid tile, or coloured glyph on a soft tile. | "filled" | "tinted" | "filled" |
| avatar Round avatar with initials fallback and presence dot. | { src?, name?, color?, online? } | — |
| leading Custom leading content (overrides icon / avatar). | ReactNode | — |
| value Muted value text on the right. | string | — |
| badge Dot, count (99+) or short label pill. | boolean | number | string | — |
| checked Accent check mark, for pickers. | boolean | — |
| chevron Disclosure chevron; on by default for pressable rows without trailing / checked. | boolean | pressable |
| trailing Any control on the right, e.g. a Switch. | ReactNode | — |
| onPress / onLongPress Makes the row pressable with a fading highlight. | () => void | — |
| destructive Red title, icon and highlight. | boolean | false |
| disabled Dims and blocks presses. | boolean | false |
| size 44 / 52 / 68pt minimum height; icons and avatars scale. | "sm" | "md" | "lg" | "md" |
| divider Hairline that starts past the leading slot. | boolean | auto in groups |
| accent Check, badge and default tile colour. | string | theme accent |
| titleStyle E.g. bold for unread rows. | StyleProp<TextStyle> | — |
| style Style for the row; ListGroup / ListSection apply theirs to their root view. | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
| ListGroup header / footer Uppercase heading and muted note around the inset card. | string | — |
| ListGroup background Card colour. | string | colors.card |
| ListSection header / footer Plain, full-width section (contacts, inbox). | string | — |
| ListSection dividerAfterLast Draw the inset hairline under the last row too. | boolean | false |
Customization
You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.
Design theme
Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).
Variants
Use the variant chips on the preview to switch examples; each maps to a demo you can copy from the Code tab.
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- iconColor
- string · default accentTile colour (danger when destructive).
- iconVariant
- "filled" | "tinted" · default "filled"White glyph on a solid tile, or coloured glyph on a soft tile.
- size
- "sm" | "md" | "lg" · default "md"44 / 52 / 68pt minimum height; icons and avatars scale.
- accent
- string · default theme accentCheck, badge and default tile colour.
- titleStyle
- StyleProp<TextStyle>E.g. bold for unread rows.
- style
- StyleProp<ViewStyle>Style for the row; ListGroup / ListSection apply theirs to their root view.
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
Behaviour & accessibility
- Touch
- Pressable rows get a UIKit-style highlight that fades in fast and out slowly, and a chevron by default. onLongPress is supported too.
- Screen readers
- Pressable rows are buttons labelled with the title, subtitle, value and badge count, with disabled and checked states. ListGroup and ListSection headers are headers.
- Platforms
- Plain React Native views, so rows look the same on iOS, Android and web. ListGroup gives the iOS inset-grouped card on every platform.
Source
FAQ
How do I make a list row in React Native?
npx @expokit/cli@latest add list-item in your Expo or React Native project and it copies a ready-made list row into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does List Item work in Expo Go?
react-native-svg) are all included in Expo Go.How do I add List Item to my Expo app?
npx @expokit/cli@latest add list-item in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.Is List Item free?
Can I change how List Item looks?
useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.