React Native Drawer for Expo

Install

Drawer · App Navigation, native in Expo Go — the other variants are a tap away. No account needed.

Needs Expo Go for SDK 58 — update from the App Store or Play Store.

A side drawer that follows your finger, or pushes the screen aside as a card.

NewiOS · Android · Expo Go
9:41

Installation

One command copies the source into your app — you own the code and can change anything.

After you add the file, import it like any local component:

App.tsx
import { Drawer } from "@/components/ui/drawer";

Or add it with the CLI (installs any missing peers):

Usage

Colours, radius and light / dark come from useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.

Like this? There's a lot more in Pro Pro

12 full screens built from the same kit — install them the same way.

See what's in Pro

Props

PropTypeDefault
content

Panel content (usually DrawerItems); scrolls between header and footer.

ReactNode—
header / footer

Pinned above / below the content (DrawerProfile, DrawerHeader, DrawerFooter…).

ReactNode—
children

The screen the drawer belongs to. Enables edge swipe and push; without children the drawer opens in a Modal.

ReactNode—
open / defaultOpen

Controlled / uncontrolled visibility.

booleanfalse
onOpenChange

Called on drags, scrim tap, Android back and Escape.

(open: boolean) => void—
side

Edge the drawer slides from.

"left" | "right""left"
width

Panel width in points or percent of the container (max 360).

number | `${number}%`"80%"
variant

Slide over a dimmed screen, or shrink the screen to a rounded 0.92 card and slide it aside (inline only).

"overlay" | "push""overlay"
edgeSwipe

Swipe in from the edge to open (needs children). Taps in the edge zone still reach the screen.

booleantrue
edgeWidth

Width of the edge-swipe zone.

number24
dismissible

Close on scrim tap and drag.

booleantrue
scaleContent

Overlay variant: scale the screen behind to 0.96 with rounded corners while open (inline).

booleantrue
haptics

Light impact on open; DrawerItems tick on press.

booleantrue
topInset / bottomInset

Space above the header / below the footer — pass safe-area insets for exact values.

numberplatform estimate
accessibilityLabel

Panel label.

stringlabels.navigationDrawer
style / panelStyle

Root container / panel style.

StyleProp<ViewStyle>—
DrawerProfile

Account block: soft solid initials (or image) avatar with presence dot, name and email; pressable as an account / workspace switcher.

{ name, email?, src?, status?, layout?: 'row' | 'stacked', onPress?, accessory? }—
DrawerHeader

Title chrome for the header slot. closeLabel names the close button (default labels.closeMenu).

{ title?, subtitle?, leading?, showClose?, onClose?, closeLabel? }—
DrawerItem

Nav row with a spring-in accent-tinted active pill, popping icon and count badge (neutral plain count / accent tinted pill / danger solid pill); tone="danger" for Log out.

{ label, icon?, badge?, badgeTone?, active?, tone?, onPress?, closeOnPress?, accent?, haptics?, trailing?, disabled? }—
DrawerSection

Quiet heading between groups with a hairline divider above (divider={false} for the first group) and an optional trailing node.

{ title, trailing?, divider? }—
DrawerFooter

Compact footer row, e.g. a storage meter.

{ label, detail?, icon?, progress?, onPress?, trailing? }—
DrawerIcon

The drawer's line icons, for menu buttons and headers.

{ name, size?, color?, strokeWidth? }—
useDrawer()

Control the surrounding Drawer from inside it.

() => { open, setOpen, toggle, close }—
className

Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.

string—

Customization

You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.

Design theme

Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).

Variants

Pick the Variants chip above the preview, or set variant=… — "overlay" | "push".

Style props

React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).

variant
"overlay" | "push" · default "overlay"Slide over a dimmed screen, or shrink the screen to a rounded 0.92 card and slide it aside (inline only).
style / panelStyle
StyleProp<ViewStyle>Root container / panel style.
className
stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.

Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.

Behaviour & accessibility

Touch
Swipe in from the screen edge to open and drag the panel or scrim to close. Release velocity decides where it settles, and it rubber-bands past fully open.
Motion
The panel springs in over a fading scrim; variant 'push' shrinks the screen into a rounded card and slides it aside. Active items spring in an accent pill and badges pop.
Reduced motion
Opening and closing use a short timing instead of a spring, the push variant no longer scales the screen, and item and badge pops are skipped.
Haptics
A light impact when the drawer opens and a selection tick when a DrawerItem is pressed.
Screen readers
The open panel is marked modal and hides itself when closed. DrawerItems are menu items with selected and disabled states, and the badge is read with the label.
Keyboard
Escape closes it on web; Android back closes it when it is rendered inline.

Source

FAQ

How do I make a side menu in React Native?
Use ExpoKit's Drawer: run npx @expokit/cli@latest add drawer in your Expo or React Native project and it copies a ready-made side menu into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.
Does Drawer work in Expo Go?
Yes. Drawer runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg, expo-haptics) are all included in Expo Go.
How do I add Drawer to my Expo app?
Run npx @expokit/cli@latest add drawer in your project. The CLI copies the component's source into your app and installs react-native-svg, expo-haptics, so the code is yours to change.
Is Drawer free?
Yes. Drawer is free: its full source is on this page and the CLI installs it without an account.
Can I change how Drawer looks?
Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.