Genesis
@stable

rowItem

A row as NativeListItem draws it: `view.summary(row)`'s title, subtitle and chips, and nothing else. A view that wants a second line says so in its summary.

packages/ui-native/src/data/resource-view/mapping.ts

Import
Subpath export: @marktiderman/genesis-ui-native/data
import { rowItem } from "@marktiderman/genesis-ui-native/data";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

rowItem

A row as NativeListItem draws it: `view.summary(row)`'s title, subtitle and chips, and nothing else. A view that wants a second line says so in its summary.

No declared props.

sectionsFor

Rows in sections by `definition.groupBy`, in the order each group first appears (the server's sort, so paging never reorders what's on screen). Without `groupBy`, one untitled section.

No declared props.

allowed

The effective right: the screen's rule AND the view's guard (never OR). The guard gets the viewer (`useViewer()`); without one it gets no one, so a guard that needs it refuses.

No declared props.

swipeActionsFor

A row's swipe actions, from the view's guards. A refused action stays in the list with its reason, so the person learns why; one the screen turns off (`false`) is left out.

No declared props.

formFieldsFor

The form sheet's fields: `view.form(mode)` (which already leaves out JSON, lists, scope, sensitive and unreadable fields and server-filled keys), each marked read-only unless `view.writable(mode)` lists it. A link the person can change is a picker (`kind: "link"`). Copied, never mutated: core caches and freezes `form()`. A create leaves read-only fields out (there is nothing to show yet); an edit shows them as text.

No declared props.

shownFields

Fields shown for these values: a field whose `visible` says no is hidden, and isn't saved.

No declared props.

writableValues

What a save sends: only the keys `view.writable(mode)` lists and the form shows. Read-only, generated, key and scope fields, and anything else the values carry (joined columns), never go. An edit passes `dirty`, the fields the person changed, so a save never rewrites the rest. A cleared optional value (an empty text, a cleared number or date) is sent as null.

No declared props.

validateValues

Field errors for a save: required fields with no value, and text over `max`.

No declared props.

refusalMessage

A refused write in plain words. A provider's `DataWriteError` (a zero-row update or delete it read back: forbidden, gone, a guard's message) already says it plainly; anything else gets the fallback sentence, never a raw driver message.

No declared props.

refusalFields

Per-field messages a provider attached to a refused write (`DataWriteError.fields`).

No declared props.