Modal.TopBar
Modal.TopBar, inner component for configuring the Modal component's title, buttons and statusBar
PROPS
name | description | type | default |
---|---|---|---|
title | title to display in the center of the top bar | string | |
titleStyle | title custom style | union | |
doneButtonProps | done action props (Button props) | shape | {} |
doneLabel | done action label | string | 'Save' |
doneIcon | done action icon | union | |
onDone | done action callback | func | |
cancelButtonProps | cancel action props (Button props) | shape | {} |
cancelLabel | cancel action label | string | |
cancelIcon | cancel action icon | union | Assets.icons.x |
onCancel | cancel action callback | func | |
includeStatusBar | whether to include status bar or not (height claculations) | bool | Constants.isIOS |
CODE SAMPLE
See example here.