When to use it
Use with the visibility hook when more content space is valuable during deliberate vertical scrolling. Keep safe areas, virtualization, and routing in application code.
Animate a React Native destination bar in response to native vertical scroll travel.
Native example
Use with the visibility hook when more content space is valuable during deliberate vertical scrolling. Keep safe areas, virtualization, and routing in application code.
const navigation = useLumenNavigationBarVisibility()
<FlatList
data={items}
onScroll={navigation.onScroll}
scrollEventThrottle={16}
renderItem={renderItem}
/>
<LumenCollapsibleNavigationBar
items={destinations}
value={destination}
visible={navigation.visible}
onValueChange={setDestination}
/>Reference
The primary shared and platform-specific options exposed by LumenCollapsibleNavigationBar.
| API | Values or type | Default | Description |
|---|---|---|---|
| visible | boolean | Required | Controls the animated expanded or collapsed state. |
| items | readonly LumenNavigationItem[] | Required | Defines peer destinations. |
| value | string | Required | Identifies the selected destination. |
| onValueChange | (value: string) => void | Required | Requests destination selection. |
| containerStyle | StyleProp<ViewStyle> | undefined | Styles the animated outer container without replacing its collapse dimensions. |
| accessory | ReactNode | undefined | Adds compact application-owned content that collapses with the navigation bar. |
Native behavior
Use with the visibility hook when more content space is valuable during deliberate vertical scrolling. Keep safe areas, virtualization, and routing in application code.
Hidden destinations stop receiving pointer input and are removed from the accessibility tree. The application keeps native list and router ownership.