Simal UI
Components

DrawerContent

Import

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

Props

PropValuesDefaultDescription
navigationThe drawer navigation object, passed as a prop rather than read from context — which is why a stub is enough to render this. Only toggleDrawer is called, and only on iOS.
actionsFooter slot. Rendered inline on iOS and pinned to the bottom on Android.
childrenDrawerContentSections. Each holds an optional DrawerContentSectionTitle and any number of DrawerContentSectionItems, which take label, icon, isActive, badge and rightView.

Examples

With Section Titles

With Actions

actions fills the footer slot (rendered inline on iOS, pinned on Android).

On this page