Applies to every preview on the site.
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:
import { BottomSheet } from "@/components/ui/bottom-sheet";Or add it with the CLI (installs any missing peers):
Usage
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.
Props
| Prop | Type | Default |
|---|---|---|
| open Show the sheet. | boolean | — |
| onClose Called after it is dragged, flung, tapped or back-buttoned closed. | () => void | — |
| snapPoints Resting heights, in points or % of the screen. Omit to size the sheet to its content (taller content scrolls). | (number | "NN%")[] | content height |
| initialSnap Snap index it opens at. | number | 0 |
| snapIndex Controlled snap index — change it while open to move the sheet. | number | — |
| onSnapChange Fires when it settles on another snap. | (index: number) => void | — |
| dismissible Allow drag-down / scrim / back to close; otherwise it rubber-bands at the lowest snap. | boolean | true |
| title / subtitle Left-aligned heading and muted line under the grabber. | string | — |
| headerRight Trailing node in the title row, e.g. a Reset link. | ReactNode | — |
| showClose Round ✕ in the header (shown when dismissible, there's a title and no headerRight). | boolean | with a title |
| closeLabel Screen-reader name of the close button (default: the kit's labels.close). | string | labels.close |
| handle Grabber pill (also an accessibility adjustable). | boolean | true |
| scrollable Body is a ScrollView: below the top snap a drag resizes the sheet, at the top snap it scrolls, and pulling down from the top collapses it. | boolean | false |
| dragFromContent Let vertical drags on the body move the sheet. Leave false if children contain their own ScrollView. | boolean | = scrollable |
| footer Pinned to the bottom of the visible sheet at every snap point. | ReactNode | — |
| avoidKeyboard Lift the sheet above the keyboard (capped below the status bar; the rest becomes scroll padding). | boolean | true |
| haptics Light impact on open, selection tick on each snap. | boolean | true |
| backdropOpacity Scrim dim at the top snap, 0–1. | number | 1 |
| bottomInset Extra padding above the home indicator; pass useSafeAreaInsets().bottom for the device. | number | platform safe inset |
| accessibilityLabel Label for the modal sheet. | string | title |
| style / contentStyle Sheet and content styles. | StyleProp<ViewStyle> | — |
| 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
Use the variant chips on the preview to switch examples; each maps to a demo you can copy from the Code tab.
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- style / contentStyle
- StyleProp<ViewStyle>Sheet and content styles.
- 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
- Drag the grabber or header between snap points; release velocity picks the detent and dragging past the limits rubber-bands. Tap the scrim or drag down to close.
- Motion
- Glides between detents on a firm spring while the scrim dims with its height. The keyboard lifts the sheet when avoidKeyboard is on.
- Reduced motion
- Snapping uses a short timing instead of a spring.
- Haptics
- A light impact on open and a selection tick on each snap. Turn off with haptics={false}.
- Screen readers
- The sheet is a modal view. The grabber is adjustable with increment and decrement actions to change snap point, and the title is a header.
- Keyboard
- Escape closes it on web when dismissible; the Android back button closes it too.
Source
FAQ
How do I make a bottom sheet in React Native?
npx @expokit/cli@latest add bottom-sheet in your Expo or React Native project and it copies a ready-made bottom sheet into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Bottom Sheet work in Expo Go?
expo-haptics, react-native-gesture-handler, react-native-reanimated, react-native-worklets) are all included in Expo Go.How do I add Bottom Sheet to my Expo app?
npx @expokit/cli@latest add bottom-sheet in your project. The CLI copies the component's source into your app and installs expo-haptics, react-native-gesture-handler, react-native-reanimated, react-native-worklets, so the code is yours to change.Is Bottom Sheet free?
Can I change how Bottom Sheet looks?
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.