Simal UI
Components

AdaptiveSearchHeader

PARTIAL RENDER — same caveat as LargeTitleHeader.

On iOS this drives the native navigation bar's search field via <Stack.Screen options={…}>, which the Storybook stub turns into a no-op. Below is the Material header the component renders itself; the iOS behaviour needs a simulator.

searchBar is required — this component exists for the search case.

Import

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

Props

PropValuesDefaultDescription
iosTitle"Section title"iOS title. Android takes its title from the search field itself, which is why this prop is platform-prefixed.
searchBarConfigures the field: placeholder, onChangeText, onCancelPress. Its presence is what makes this a search header rather than a plain one.
iosBackVisiblebooleantrueShows the iOS back chevron. Ignored on Android, which uses the native up affordance.
shadowVisiblebooleanfalseHairline under the header. Turn it off when the screen below already has its own top border.

Examples

With Right View

No Back Button

On this page