Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
The Modal component is a basic way to present content above an enclosing view.

Example


Reference

Props

View props

Inherits View Props.

onDismiss

The onDismiss prop allows passing a function that will be called once the modal has been dismissed.

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.

onShow

The onShow prop allows passing a function that will be called once the modal has been shown.

transparent

The transparent prop determines whether your modal will fill the entire view. Setting this to true will render the modal over a transparent background.

visible

The visible prop determines whether your modal is visible.
Last modified on September 30, 2025