Skip to main content

Drawer Navigation

Drawer navigation provides a panel that slides in from the side of the screen, typically used for app-wide navigation and settings.

Installation

Install required dependencies:
From package.json:84-123:

Basic Drawer

Create a drawer layout:
app/_layout.tsx
Add drawer screens:
From the source (Drawer.tsx:1-9):

Configure Drawer

Customize drawer appearance:
app/_layout.tsx

Drawer Icons

Icon Library

Custom Icons

Drawer Position

Drawer Type

Slide (Default)

Front

Back

Permanent

Custom Drawer Content

Create custom drawer:
app/_layout.tsx

Opening the Drawer

Toggle Drawer

Custom Header Button

app/_layout.tsx

Drawer with Tabs

Combine drawer with tabs:
app/_layout.tsx

Gesture Configuration

Hide Drawer Items

Drawer Sections

Group drawer items:

Drawer Badge

Responsive Drawer

Common Patterns

User Profile Header

Logout Button

Theme Toggle

Best Practices

Use for Top-Level Navigation

Combine with Other Navigators

Clear Labels and Icons

Next Steps

Stack Navigation

Combine with stack navigation

Tab Navigation

Alternative to drawer

Layouts

Understand drawer layouts

Navigation

Navigate from drawer