Saltar al contenido principal

BottomSheet

Panel que sube desde abajo. Arrástralo o toca el fondo para cerrar.

Uso

import {BottomSheet} from 'rn-inkpad';

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

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

Props

NombreTipoPor defectoDescripción
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.