as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
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.
最后修改于 2026年10月26日