NativeListItem
ListItem — recurring row in a list (settings, contacts, results). Slots: leading (avatar / icon), title, subtitle, trailing (chevron / accessory / action). Supports pressable variants with automatic divider rendering between adjacent items via a wrapper pattern (see <NativeListItemDivider>). For platform-default chevrons, pass `showChevron`; the chevron uses the muted-foreground token. `actions` gives the row its actions the iOS way (ADR 0028): behind a swipe (leading and trailing, full swipe, iOS 26's round style with `actionsAppearance="round"`), in the long-press menu (the system context menu with `GenesisModules.menu`), and as VoiceOver's actions.
packages/ui-native/src/components/list-item.tsx
Import
Subpath export:
@marktiderman/genesis-ui-nativeimport { NativeListItem } from "@marktiderman/genesis-ui-native";Components
Auto-generated from TypeScript source via
react-docgen-typescript.NativeListItem
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | string | — | |
| accessibilityLabel | string | — | What a screen reader reads for the row. Default its title and subtitle. The row is one element, so a `trailing` badge's own label is not read: put its words here too. |
| accessibilityRole | enum | — | What a pressable row is to a screen reader. Default `button`; a row that flips its switch (NativeToggleRow) is a `switch`, and one choice of several (NativeWorkspaceSwitcher) a `radio`, each with `accessibilityState.checked`. |
| accessibilityState | { checked?: boolean; selected?: boolean; } | undefined | — | Merged over the row's own (`disabled`). |
| actions | readonly RowSwipeAction[] | — | The row's actions: swipe, long-press menu and screen-reader actions, from one list. |
| actionsAppearance | enum | — | How the swipe draws them: `"fill"` (default) or iOS 26's `"round"`. |
| className | string | — | |
| disabled | boolean | — | |
| leading | ReactNode | — | Slot rendered to the left of the title (avatar / icon). |
| onPress | (() => void) | — | When provided, the row becomes pressable. |
| showChevron | boolean | — | When true, renders a chevron-right at the end. |
| subtitle | string | — | |
| subtitleLines | number | null | — | How many lines the subtitle shows before it's cut short. Default 2; `null` wraps it whole (a value to read, an id). |
| subtitleSelectable | boolean | — | The subtitle can be selected and copied (a value: an id, a URL). Default false. |
| testID | string | — | |
| trailing | ReactNode | — | Slot rendered to the right of the title (badge / accessory). |
NativeListItemDivider
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — |