Simal UI
Components

LargeTitleHeader

PARTIAL RENDER — on iOS this configures the *native* navigation bar through <Stack.Screen options={…}>, and that instruction is all it emits.

Storybook stubs expo-router (.storybook/mocks/expo-router.tsx), so Stack.Screen renders nothing and what you see below is the Material header the component draws itself. The iOS large-title bar is not reproducible here — check it on a simulator.

The back button only appears when navigation.canGoBack() is true; the stub always says yes.

Import

import { LargeTitleHeader } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
title"Section title"Header title. On iOS it renders large and collapses to inline as the screen scrolls.
materialPresetstack · inline"stack"Android only. stack is the tall collapsing header, inline the compact one.
backVisiblebooleantrueShows the back affordance. It navigates through the router, not a callback.
shadowVisiblebooleanfalseHairline under the header.
searchBarAdds a search affordance to the header. On iOS it expands in place rather than pushing a screen.
rightViewRender function for the trailing slot — a function, not a node, so it can react to header state.

Examples

Inline preset

A search button appears whenever searchBar is configured.

With Right View

Hidden

shown: false removes it entirely — the screen keeps its own scroll area.

On this page