# List Item — React Native component for Expo

> Settings, contact and inbox rows with a press highlight that fades in fast, out slow.

Settings, contacts and inbox rows: icon tiles, avatars with presence dots, subtitles, values, badges, checks and chevrons, with a UIKit-style press highlight that fades in fast and out slow. ListGroup gives you the iOS inset-grouped card with headers, footers and separators that line up with the text.

- Docs: https://expokit.in/docs/components/list-item
- Tier: Free
- Also called: list row, settings row, table view cell
- Category: Display
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg
- Uses ExpoKit items: kit
- Variants: Settings, Contacts, Inbox, Picker, Tinted

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add list-item
```

The CLI copies the source into your project (you own the code) and installs react-native-svg.

Import: `import { ListItem } from "@/components/ui/list-item";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `title` | `string` | — | Main text (required). |
| `subtitle` | `string` | — | One muted line under the title. |
| `description` | `string` | — | Longer muted text, clamped to numberOfLines. |
| `numberOfLines` | `number` | `2` | Lines of description shown. |
| `meta` | `string` | — | Small text at the end of the title row, e.g. a time. |
| `icon` | `ListItemIconName \| ({ color, size }) => ReactNode` | — | 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. |
| `iconColor` | `string` | `accent` | Tile colour (danger when destructive). |
| `iconVariant` | `"filled" \| "tinted"` | `"filled"` | White glyph on a solid tile, or coloured glyph on a soft tile. |
| `avatar` | `{ src?, name?, color?, online? }` | — | Round avatar with initials fallback and presence dot. |
| `leading` | `ReactNode` | — | Custom leading content (overrides icon / avatar). |
| `value` | `string` | — | Muted value text on the right. |
| `badge` | `boolean \| number \| string` | — | Dot, count (99+) or short label pill. |
| `checked` | `boolean` | — | Accent check mark, for pickers. |
| `chevron` | `boolean` | `pressable` | Disclosure chevron; on by default for pressable rows without trailing / checked. |
| `trailing` | `ReactNode` | — | Any control on the right, e.g. a Switch. |
| `onPress / onLongPress` | `() => void` | — | Makes the row pressable with a fading highlight. |
| `destructive` | `boolean` | `false` | Red title, icon and highlight. |
| `disabled` | `boolean` | `false` | Dims and blocks presses. |
| `size` | `"sm" \| "md" \| "lg"` | `"md"` | 44 / 52 / 68pt minimum height; icons and avatars scale. |
| `divider` | `boolean` | `auto in groups` | Hairline that starts past the leading slot. |
| `accent` | `string` | `theme accent` | Check, 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` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |
| `ListGroup header / footer` | `string` | — | Uppercase heading and muted note around the inset card. |
| `ListGroup background` | `string` | `colors.card` | Card colour. |
| `ListSection header / footer` | `string` | — | Plain, full-width section (contacts, inbox). |
| `ListSection dividerAfterLast` | `boolean` | `false` | Draw the inset hairline under the last row too. |

## 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.

## FAQ

### How do I make a list row in React Native?

Use ExpoKit's List Item: run 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?

Yes. List Item runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg) are all included in Expo Go.

### How do I add List Item to my Expo app?

Run 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?

Yes. List Item is free: its full source is on this page and the CLI installs it without an account.

### Can I change how List Item looks?

Yes. It takes its colours, radius and light / dark mode from 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.

## More

- Live preview, variants and code: https://expokit.in/docs/components/list-item
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
