Dialog
Component for displaying custom content inside a popup dialog
(code example)
tip
This component support alignment modifiers.
note
Use alignment modifiers to control the dialog position (top, bottom, centerV, centerH, etc... by default the dialog is aligned to center)
#
Usage<Dialog visible={isVisible} onDismiss={() => console.log('dismissed')} panDirection={PanningProvider.Directions.DOWN}> <Text text60>Content</Text></Dialog>
#
API#
containerStyleComponent's container style
ViewStyle
#
heightHeight
string | number
#
ignoreBackgroundPressWhether or not to ignore background press
boolean
#
onDialogDismissedCalled once the dialog has been dismissed completely
(props: any) => void
#
onDismissCalled when clicking on the background
(props?: any) => void
#
overlayBackgroundColorThe color of the overlay background
string
#
panDirectionThe direction of the allowed pan
UP | DOWN | LEFT | RIGHT
#
pannableHeaderPropsThe props that will be passed to the pannable header
any
#
renderPannableHeader#
If this is added only the header will be pannable. Props are transferred to the 'renderPannableHeader'For scrollable content (the children of the dialog)
(props: any) => JSX.Element
#
testIDThe test id for e2e tests
string
#
useSafeAreaIn iOS, use safe area, in case component attached to the bottom
boolean
#
visibleControl visibility of the component
boolean
#
widthWidth
string | number