NavBarSaveButton
Nav-bar sub-primitives — escape hatches for `<Stack.Screen>` `headerLeft`, `headerRight`, and custom title view. Use these when the named-prop slots on a layout aren't enough — e.g., a screen needs a save button on the right that's wired to dirty-state, or a search bar replaces the title on a results screen. Pass directly into `headerLeft={() => <NavBarSearchBar ... />}` or compose into a custom `headerTitle={() => <NavBarTitle ... />}` slot.
packages/ui-native/src/layouts/nav-bar.tsx
Import
Subpath export:
@marktiderman/genesis-ui-nativeimport { NavBarSaveButton } from "@marktiderman/genesis-ui-native";Components
Auto-generated from TypeScript source via
react-docgen-typescript.NavBarSaveButton
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| destructive | boolean | — | When true, render label in destructive tone. |
| disabled | boolean | — | When true, the button is muted and not pressable. Use this for clean / pristine forms. |
| label | string | Save | Visible label. Default `"Save"`. |
| loading | boolean | — | When true, label switches to a busy indicator and presses are blocked. |
| onPress | (() => void) | — | Press handler. Disabled when not provided OR when `disabled`/`loading`. |
| testID | string | — |
NavBarTitle
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | string | — | Title text. |
| className | string | — | |
| onPress | (() => void) | — | Optional press handler — turns the title row into a tap target (e.g., reveal a picker). |
| subtitle | string | — | Optional smaller subtitle line under the title. |
| testID | string | — |
NavBarSearchBar
Inline search input meant to occupy the title slot on a search results screen. For a sticky search-below-the-header pattern, prefer the standalone <NativeSearchBar> primitive.
| Prop | Type | Default | Description |
|---|---|---|---|
| onChangeText* | (next: string) => void | — | |
| value* | string | — | |
| className | string | — | |
| clearable | boolean | true | Render a clear (X) button when value is non-empty. Default true. |
| onSubmit | (() => void) | — | Called when the user submits the search (return key). |
| placeholder | string | Search | |
| testID | string | — |