Skip to content

Commit 3523e01

Browse files
committed
Document swipeEnabled
1 parent 904fad6 commit 3523e01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

versioned_docs/version-5.x/drawer-navigator.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,13 @@ String or a function that given `{ focused: boolean, color: string }` returns a
304304

305305
Function, that given `{ focused: boolean, color: string, size: number }` returns a React.Node, to display in drawer sidebar
306306

307+
#### `swipeeEnabled`
308+
309+
Whether you can use swipe gestures to open or close the drawer. Defaults to `true`.
310+
307311
#### `gestureEnabled`
308312

309-
Whether you can use gestures to open or close the drawer. Defaults to `true`.
313+
Whether you can use gestures to open or close the drawer. Setting this to `false` disables swipe gestures as well as tap on overlay to close. See `swipeEnabled` to disable only the swipe gesture.
310314

311315
#### `unmountOnBlur`
312316

0 commit comments

Comments
 (0)