Skip to main content

BottomSheet

Sheet that slides from the bottom. Drag it down or tap the backdrop to close.

Usage

import {BottomSheet} from 'rn-inkpad';

<BottomSheet visible={visible} onClose={() => setVisible(false)}>
<Content />
</BottomSheet>

<BottomSheet visible={visible} height={400} onClose={close} backgroundColor="#F3F4F6" />

Props

NameTypeDefaultDescription
visiblebooleanShows the sheet.
onClose() => voidCalled when the user asks to close (backdrop, drag, back button). Set visible to false in it.
childrenReactNodeContent.
heightnumbercontent heightFixed height.
backgroundColorstringtheme backgroundSheet color.
backdropColorstringtheme overlayBackdrop color.
radiusnumbertheme radius lgTop corners radius.
showHandlebooleantrueDrag handle at the top.
handleColorstringtheme borderHandle color.
closeOnBackdropbooleantrueTap the backdrop to close.
dragToClosebooleantrueDrag the sheet down to close.
styleStyleProp<ViewStyle>Sheet style.