NativeConflictSheet
The phone's ConflictSheet: when a save met someone else's change, a bottom sheet shows their value above the one this person tried to save, for each field where they differ, then "Take theirs" or "Keep mine". NativeRecordView's settings sections open it on a `conflict`.
packages/ui-native/src/data/NativeConflictSheet.tsx
Import
Subpath export:
@marktiderman/genesis-ui-native/dataimport { NativeConflictSheet } from "@marktiderman/genesis-ui-native/data";Components
Auto-generated from TypeScript source via
react-docgen-typescript.NativeConflictSheet
The phone's ConflictSheet: when a save met someone else's change, a bottom sheet shows their value above the one this person tried to save, for each field where they differ, then "Take theirs" or "Keep mine". NativeRecordView's settings sections open it on a `conflict`.
| Prop | Type | Default | Description |
|---|---|---|---|
| conflict* | WriteConflict | null | — | The conflict to show (`writeConflict(error, values)`); null keeps it closed. |
| onDismiss* | () => void | — | Closed without choosing: the changes stay where they are, unsaved. |
| onKeepMine* | () => void | Promise<void> | — | Save these values over theirs, at the version the conflict reported. The sheet waits for it. |
| onTakeTheirs* | () => void | — | Drop these values and show their row. |
| format | ((field: string, value: unknown) => ReactNode) | — | A field's value as shown. Default: plain text. |
| label | ((field: string) => string) | — | A field's label. Default: the field name, title-cased. |
| messages | Partial<NativeConflictSheetMessages> | — | |
| noun | string | — | The record's noun ("task"), for the title. |
| testID | string | native-conflict-sheet |