DraggableModal
Component to render a draggable modal, based on react-native-bottom-sheet (opens in a new tab).
It wraps a BottomSheetModal and automatically embeds a BottomSheetScrollView so that your content is scrollable out of the box.
Import
import { DraggableModal } from "react-native-ficus-ui";Usage
EDITABLE EXAMPLE
Props
Extends every Box props and BottomSheetModalProps from @gorhom/bottom-sheet
isOpen
Boolean to indicate if the modal is opened or not.
| Type | Required | Default |
|---|---|---|
| boolean | No |
onClose
Method called when the modal is closed by the user.
| Type | Required | Default |
|---|---|---|
| () => void | No |
isScrollable
Boolean to indicate if the modal should be scrollable.
| Type | Required | Default |
|---|---|---|
| boolean | No |
scrollViewProps
Props forwarded to the internal BottomSheetScrollView (e.g. contentContainerStyle, keyboardShouldPersistTaps, showsVerticalScrollIndicator, ...).
| Type | Required | Default |
|---|---|---|
| BottomSheetScrollViewProps | No |