NativeResourcePage
packages/ui-native/src/data/NativeResourcePage.tsx
Import
Subpath export:
@marktiderman/genesis-ui-native/dataimport { NativeResourcePage } from "@marktiderman/genesis-ui-native/data";Components
Auto-generated from TypeScript source via
react-docgen-typescript.NativeResourcePage
| Prop | Type | Default | Description |
|---|---|---|---|
| resource* | string | — | |
| title* | string | — | |
| cardFields | (string | NativeCardFieldDef<T>)[] | — | |
| createLabel | string | New | |
| emptyState | ReactNode | — | |
| headerRight | ReactNode | — | |
| offlineState | ReactNode | — | Shown while the list has nothing saved and its fetch is paused because the device is offline (`networkMode: "offlineFirst"`), instead of an empty list that says there is nothing. Default: a one-line offline message. |
| onCreatePress | (() => void) | — | |
| onItemPress | ((item: T) => void) | — | |
| renderItem | ((item: T) => ReactNode) | — | |
| resourceOptions | UseResourceOptions<T> | — | |
| searchFields | string[] | — | |
| searchPlaceholder | string | — | |
| statusFilter | string | { field: string; options?: string[]; } | — | |
| subtitle | string | — | |
| titleField | string | — |