Skip to content

Commit 1c8658a

Browse files
authored
Update moda docs
1 parent fec2f1f commit 1c8658a

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

docs/modal.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,24 @@ The `onOrientationChange` callback is called when the orientation changes while
174174
| -------- |
175175
| function |
176176

177+
178+
---
179+
180+
### `allowSwipeDismissal` <div class="label ios">iOS</div>
181+
182+
Controls whether the modal can be dismissed by swiping down on iOS.
183+
This requires you to implement the `onRequestClose` prop to handle the dismissal.
184+
185+
| Type | Default |
186+
| ---- | ------- |
187+
| bool | `false` |
188+
177189
---
178190

179191
### `onRequestClose`
180192

181193
The `onRequestClose` callback is called when the user taps the hardware back button on Android or the menu button on Apple TV. Because of this required prop, be aware that `BackHandler` events will not be emitted as long as the modal is open.
182-
On iOS, this callback is called when a Modal is being dismissed using a drag gesture when `presentationStyle` is `pageSheet or formSheet`
194+
On iOS, this callback is called when a Modal is being dismissed using a drag gesture when `presentationStyle` is `pageSheet or formSheet`. When `allowSwipeDismissal` is enabled this callback will be called after dismissing the modal.
183195

184196
| Type |
185197
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

0 commit comments

Comments
 (0)