Please refer to the Modal docs for more info on setup and usage.
Trigger Focus
A ref to the trigger that opens the modal, along with an onDidClose method to reset focus on the trigger when the modal closes, needs to be wired up for accessibility (see code example below).
Labels
Modals also require an accessibility label, which we set to title by default. However, if you don't want to provide a title or there's other text that gives the user better context to the modal, then you can pass an element id to accessibilityLabelledBy. Alternatively, you may directly provide a contextual label to accessibilityLabel.
Basic example
Advanced layouts
For more complex layouts, including three-column structures with custom headers and footers, see the FullscreenModalLayout component examples. FullscreenModalLayout provides more flexibility for building custom modal layouts while FullscreenModal offers a simpler API for common two-column use cases.