Modal
Modal covers the full screen. For a prompt/small version of modal, use Dialog
Usage
Open modal
Nested
Open outer modal
Using browser history
By using useHistory
prop it will mimic Android's back button behavior on web which closes modals. On RN, this will have no effect and will use a regular Modal
. Works in nested modals as well.
Note: Uses history state
to manipulate modal state
Open outer modal
Props
useHistory
Boolean | undefined
shouldLockBodyScroll
Boolean | undefined