Modal
Component that present content on top of the invoking screen
(code example)
info
This component extends Modal props.
#
Usage<Modal visible={isVisible} onBackgroundPress={() => console.log('background pressed')}> <Text text60>Content</Text></Modal>
#
API#
accessibilityLabelOverrides the text that's read by the screen reader when the user interacts with the element.\By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.
string
#
blurViewA custom view to use as a BlurView instead of the default one
JSX.Element
#
enableModalBlur#
iOS onlyBlurs the modal background when transparent
boolean
#
onBackgroundPressallow dismissing a modal when clicking on its background
(event: GestureResponderEvent) => void
#
overlayBackgroundColorThe background color of the overlay
string
#
testIDThe modal's end-to-end test identifier
string
#
useGestureHandlerRootView#
Android onlyShould add a GestureHandlerRootView
boolean