TopNav
TopNavigation provides a heading component for a page/screen.
#
Usage#
Simple UsageYou can simply put your title or your logo on middleContent
#
Left or Right ContentYou can add a content on left or right you can give it an action (onPress
) too.
#
Propertiesprops | required | value | Default Value |
---|---|---|---|
ViewProps | |||
height | No | number | 64 |
backgroundColor | No | string | #FFFFFF |
borderColor | No | string | #c0c0c0 |
leftContent | No | string or React.ReactNode | |
middleContent | No | string or React.ReactNode | |
rightContent | No | string or React.ReactNode | |
leftAction | No | VoidFunction | |
middleAction | No | VoidFunction | |
rightAction | No | VoidFunction | |
leftTextStyle | No | TextStyle | |
middleTextStyle | No | TextStyle | |
rightTextStyle | No | TextStyle |