Drawer
Drawer Component
(code example)
APIβ
bouncinessβ
The drawer animation bounciness
number
customValueβ
Custom value of any type to pass on to the component and receive back in the action callbacks
any
disableHapticβ
Whether to disable the haptic
boolean
fullLeftThresholdβ
Threshold for a left full swipe (0-1)
number
fullRightThresholdβ
Threshold for a right full swipe (0-1)
number
fullSwipeLeftβ
Whether to allow a full left swipe
boolean
fullSwipeRightβ
Whether to allow a full right swipe
boolean
itemsIconSizeβ
The items' icon size
number
itemsMinWidthβ
Set a different minimum width
number
itemsTextStyleβ
The items' text style
TextStyle
itemsTintColorβ
The color for the text and icon tint of the items
string
leftItemβ
The bottom layer's item to appear when opened from the left (a single item)
ItemProps
onDragStartβ
Called when drag gesture starts
() => any
onFullSwipeLeftβ
Callback for left item full swipe
() => void
onFullSwipeRightβ
Callback for right item full swipe
() => void
onSwipeableWillCloseβ
Callback for close action
() => void
onSwipeableWillOpenβ
Callback for open action
() => void
onToggleSwipeLeftβ
Callback for left item toggle swipe
() => {rowWidth, leftWidth, dragX, resetItemPosition}
onWillFullSwipeLeftβ
Callback for just before left item full swipe
() => void
onWillFullSwipeRightβ
Callback for just before right item full swipe
() => void
rightItemsβ
The bottom layer's items to appear when opened from the right
ItemProps[]
styleβ
Component's style
ViewStyle
testIDβ
The test id for e2e tests
string
useNativeAnimationsβ
Perform the animation in natively
boolean