Modal.TopBar
Modal.TopBar, inner component for configuring the Modal component's title, buttons and statusBar
(code example)
Usageβ
<Modal.TopBar title={'Title'} onCancel={() => console.log('cancel')} onDone={() => console.log('done')} />
APIβ
cancelButtonPropsβ
Cancel action props
ButtonProps
cancelIconβ
Cancel action icon
ImageSource
cancelLabelβ
Cancel action label
string
containerStyleβ
Style for the TopBar container
ViewStyle
doneButtonPropsβ
Done action props
ButtonProps
doneIconβ
Done action icon
ImageSource
doneLabelβ
Done action label
string
includeStatusBarβ
Whether to include status bar or not (height calculations)
boolean
leftButtonsβ
Buttons to render on the left side of the top bar
topBarButtonProp | topBarButtonProp[]
onCancelβ
Cancel action callback
(props?: any) => void
onDoneβ
Done action callback
(props?: any) => void
rightButtonsβ
Buttons to render on the right side of the top bar
topBarButtonProp | topBarButtonProp[]
subtitleβ
Subtitle to display below the top bar title
string
subtitleStyleβ
Subtitle custom style
TextStyle
titleβ
Title to display in the center of the top bar
string
titleStyleβ
Title custom style
TextStyle