Modal
suggest changeIntroduction
The Modal component presents content above an enclosing view.
Parameters
| Prop | Details |
|---|---|
animationType |
One of 'none', 'slide', or 'fade'. Controls how the modal animates. |
visible |
Boolean that controls whether the modal is shown. |
onShow |
Called once the modal has been shown. |
transparent |
Boolean. When true, the modal's background is transparent. |
onRequestClose (Android) |
Called when the user presses the hardware back button. Required on Android. |
onOrientationChange (iOS) |
Described in older notes as a callback for orientation changes. Confirm it against your React Native version before relying on it. |
supportedOrientations (iOS) |
One or more of 'portrait', 'portrait-upside-down', 'landscape', 'landscape-left', and 'landscape-right'. |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents