Overlay
The Overlay is a view that floats above an app’s content.
Overlays are an easy way to inform or request information from the user.
#
UsageWeb-platform specific note:
You must pass a valid React Native
Modal
component implementation intoModalComponent
prop becauseModal
component is not implemented yet inreact-native-web
...import Modal from 'modal-react-native-web';
...
<Overlay ModalComponent={Modal} ... />...
#
Props#
Overlay#
Reference#
Overlay#
ModalComponentOverride React Native Modal
component (usable for web-platform).
Type | Default |
---|---|
any | None |
#
backdropStyleStyle of the backdrop container.
Type | Default |
---|---|
View style(Object) | None |
#
fullScreenIf set to true, the modal will take up the entire screen width and height.
Type | Default |
---|---|
boolean | false |
#
isVisibleIf true, the overlay is visible.
Type | Default |
---|---|
boolean | None |
#
onBackdropPressHandler for backdrop press (only works when fullscreen
is false).
Type | Default |
---|---|
Function | Function |
#
overlayStyleStyle of the actual overlay.
Type | Default |
---|---|
View style(Object) | None |