Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,24 @@
| -------- |
| function |


Check failure on line 177 in docs/modal.md

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎`
Comment thread
okwasniewski marked this conversation as resolved.
Outdated
---

### `allowSwipeDismissal` <div class="label ios">iOS</div>

Controls whether the modal can be dismissed by swiping down on iOS.
This requires you to implement the `onRequestClose` prop to handle the dismissal.

| Type | Default |
| ---- | ------- |
| bool | `false` |

---

### `onRequestClose`

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.
On iOS, this callback is called when a Modal is being dismissed using a drag gesture when `presentationStyle` is `pageSheet or formSheet`
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.

Check failure on line 194 in docs/modal.md

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
Comment thread
okwasniewski marked this conversation as resolved.
Outdated

| Type |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand Down
Loading