Genesis
@stable

NativeRecordView

One record's screen, from its record view (defineRecordView): ```tsx <Stack.Screen options={getNativeRecordViewStackOptions({ view: brandRecordView, row: brand })} /> <NativeRecordView view={brandRecordView} row={brand} /> ```

packages/ui-native/src/data/resource-view/NativeRecordView.tsx

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

NativeRecordViewMenu

The header menu: a button that lists the record view's actions. On iOS an action sheet (ActionSheetIOS, destructive ones in red); elsewhere a sheet of rows, since Android's alert shows at most three buttons. A refused action stays listed and explains why when pressed.

PropTypeDefaultDescription
row*Row—
view*AnyRecordView<T>—
can((action: string, row: T) => false | Allowed)—The screen's own rule: `false` hides an action, a sentence refuses it. Only narrows.
messagesPartial<NativeRecordViewMessages>—
onAction((name: string, row: T) => unknown)—Runs an allowed (and confirmed) action. Default: the provider's `runAction`.
testIDstring—

getNativeRecordViewStackOptions

`<Stack.Screen options>` for a record view: the record's title in the navigation bar and the actions in the header menu. ```tsx <Stack.Screen options={getNativeRecordViewStackOptions({ view: brandRecordView, row: brand })} /> ```

PropTypeDefaultDescription
row*Row—
view*AnyRecordView<T>—
can((action: string, row: T) => false | Allowed)—The screen's own rule: `false` hides an action, a sentence refuses it. Only narrows.
headerLeft(() => ReactNode)—Custom node rendered on the left of the nav bar.
headerLeftItems(() => readonly unknown[])—Native header items on the left (`unstable_headerLeftItems`).
headerOptionsRecord<string, unknown>—Direct passthrough merged INTO the resolved options object. Wins over named props.
headerRight(() => ReactNode)—Custom node rendered on the right of the nav bar.
headerRightItems(() => readonly unknown[])—Native header items on the right (react-native-screens' `unstable_headerRightItems`): bar buttons and menus drawn by UIKit, with iOS 26's glass grouping. Prefer them to `headerRight`.
largeboolean—When true, iOS uses large-title mode + scroll-edge appearance.
messagesPartial<NativeRecordViewMessages>—
onAction((name: string, row: T) => unknown)—Runs an allowed (and confirmed) action. Default: the provider's `runAction`.
scrollEdgeBehaviorenum—iOS scroll-edge behavior. `"match"` collapses, `"transparent"` always transparent, `"opaque"` always opaque.
searchScreenSearchOptions—Native search in the header (react-native-screens' `headerSearchBarOptions`): the system search field under the large title, which hides on scroll. On iOS 26 pass `placement: "integrated"` (or `"integratedButton"`) to put it in the toolbar; with a tab bar, search is usually its own tab (`role: "search"` on NativeTabs). Never draw your own.

NativeRecordView

One record's screen, from its record view (defineRecordView): ```tsx <Stack.Screen options={getNativeRecordViewStackOptions({ view: brandRecordView, row: brand })} /> <NativeRecordView view={brandRecordView} row={brand} /> ```

PropTypeDefaultDescription
row*Row—The record, as the screen loaded it. A save refreshes it through the cache.
view*AnyRecordView<T>—
listsPartial<Record<string, Partial<Omit<NativeResourceViewProps<Row>, "view" | "filter">>>>—More props for a list section's NativeResourceView, by section id.
messagesPartial<NativeRecordViewMessages>—
onOpenSection((id: string) => void)—With more than four sections: push that section's route (the pushed screen passes `section`). Without it, the section opens in place with an "All sections" row to go back.
onSaved((row: T) => void)—After a settings section saved, with the stored row.
onSectionChange((id: string) => void)—The segmented control changed section.
sectionstring—The section to show. With up to four sections, the segmented control's value (default the first). With more, the pushed section; without it, the list of sections.
slotsPartial<Record<string, ReactNode | ((top: ReactNode) => ReactNode)>>—The screen's own sections, by id. A node is laid out in the screen's scroll view. A section that scrolls itself (a long FlatList) passes a function instead: it gets the screen's top (switcher, readiness, sections) to render as its list's header, and owns the scroll view, so set `contentInsetAdjustmentBehavior="automatic"` on it.
switcherReactNode—Above the sections: a switcher between records.
testIDstring—

NativeResourceWorkspace

PropTypeDefaultDescription
row*Row—The record, as the screen loaded it. A save refreshes it through the cache.
workspace*AnyRecordView<T>—
listsPartial<Record<string, Partial<Omit<NativeResourceViewProps<Row>, "view" | "filter">>>>—More props for a list section's NativeResourceView, by section id.
messagesPartial<NativeRecordViewMessages>—
onOpenSection((id: string) => void)—With more than four sections: push that section's route (the pushed screen passes `section`). Without it, the section opens in place with an "All sections" row to go back.
onSaved((row: T) => void)—After a settings section saved, with the stored row.
onSectionChange((id: string) => void)—The segmented control changed section.
sectionstring—The section to show. With up to four sections, the segmented control's value (default the first). With more, the pushed section; without it, the list of sections.
slotsPartial<Record<string, ReactNode | ((top: ReactNode) => ReactNode)>>—The screen's own sections, by id. A node is laid out in the screen's scroll view. A section that scrolls itself (a long FlatList) passes a function instead: it gets the screen's top (switcher, readiness, sections) to render as its list's header, and owns the scroll view, so set `contentInsetAdjustmentBehavior="automatic"` on it.
switcherReactNode—Above the sections: a switcher between records.
testIDstring—

NativeResourceWorkspaceMenu

PropTypeDefaultDescription
row*Row—
workspace*AnyRecordView<T>—
can((action: string, row: T) => false | Allowed)—The screen's own rule: `false` hides an action, a sentence refuses it. Only narrows.
messagesPartial<NativeRecordViewMessages>—
onAction((name: string, row: T) => unknown)—Runs an allowed (and confirmed) action. Default: the provider's `runAction`.
testIDstring—

getNativeResourceWorkspaceStackOptions

PropTypeDefaultDescription
row*Row—
workspace*AnyRecordView<T>—
can((action: string, row: T) => false | Allowed)—The screen's own rule: `false` hides an action, a sentence refuses it. Only narrows.
headerLeft(() => ReactNode)—Custom node rendered on the left of the nav bar.
headerLeftItems(() => readonly unknown[])—Native header items on the left (`unstable_headerLeftItems`).
headerOptionsRecord<string, unknown>—Direct passthrough merged INTO the resolved options object. Wins over named props.
headerRight(() => ReactNode)—Custom node rendered on the right of the nav bar.
headerRightItems(() => readonly unknown[])—Native header items on the right (react-native-screens' `unstable_headerRightItems`): bar buttons and menus drawn by UIKit, with iOS 26's glass grouping. Prefer them to `headerRight`.
largeboolean—When true, iOS uses large-title mode + scroll-edge appearance.
messagesPartial<NativeRecordViewMessages>—
onAction((name: string, row: T) => unknown)—Runs an allowed (and confirmed) action. Default: the provider's `runAction`.
scrollEdgeBehaviorenum—iOS scroll-edge behavior. `"match"` collapses, `"transparent"` always transparent, `"opaque"` always opaque.
searchScreenSearchOptions—Native search in the header (react-native-screens' `headerSearchBarOptions`): the system search field under the large title, which hides on scroll. On iOS 26 pass `placement: "integrated"` (or `"integratedButton"`) to put it in the toolbar; with a tab bar, search is usually its own tab (`role: "search"` on NativeTabs). Never draw your own.

parseSettingNumber

A number as typed: "1.5" or, with a comma as the decimal mark, "1,5". Anything else (an empty string aside) is an error, never NaN.

No declared props.

SEGMENTED_SECTIONS_MAX

Up to this many sections show as a segmented control; more are pushed rows.

No declared props.