Skip to main content

Incubator.Dialog.Header

<Dialog.Header title={'Title'} subtitle={'Subtitle'} trailingAccessory={renderAccessory}/>
APIThis is the list of additional props for the component

bottomAccessory
ReactElement

Pass to render a bottom element below the subtitle

contentContainerStyle
ViewProps['style']

Style for the leading + content + trailing components (without the bottomAccessory)

leadingAccessory
ReactElement

Pass to render a leading element

onPress
() => void

onPress callback for the inner content

showDivider
boolean

Show the header's divider. Default is true

showKnob
boolean

Show the header's knob. Default is true

subtitle
string

Subtitle

subtitleProps
TextProps

Subtitle extra props

subtitleStyle
StyleProp<TextStyle>

Subtitle text style

title
string

Title

titleProps
TextProps

Title extra props

titleStyle
StyleProp<TextStyle>

Title text style

topAccessory
ReactElement

Pass to render a top element above the title

trailingAccessory
ReactElement

Pass to render a trailing element