Bottom Sheet
An interactive modal bottom drawer with drag handle and backdrop dismiss.
v0.2.2NativeWindStyleSheetiOSAndroidExpo GoWeb
Preview
Installation
npx nativra-cli add bottom-sheetWrites BottomSheet.tsx to components/ui, rewrites imports to your aliases and records hashes in nativra.lock.json, along with 2 registry dependencies. Existing files are never overwritten without asking.
Want to try it first? Open it in the playground: a real React Native project in your browser, with this item installed by the CLI.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| isOpen | boolean | required | Drawer open state |
| onClose | () => void | required | Callback when drawer is dragged or closed |
| title | string | undefined | Header title |
| snapPoints | string[] | ["25%", "50%", "90%"] | Modal height snap points |
| children | React.ReactNode | undefined | Drawer content surface |
Source
Exactly what the CLI writes, before your import aliases are applied.
Dependencies
Registry items
- useThemeColorsHookReturns the installed theme's semantic colors for the current light/dark scheme, and the installed style's tokens and helpers. Used by every component.
- Class Names UtilityUtilityUtility function for conditionally merging class names with clsx and tailwind-merge (NativeWind) or flattening style objects (StyleSheet).