Skip to main content
Version: 3.4.2

header

Props


Reference

backgroundColor

sets backgroundColor of the parent component

TypeDefault
stringnone

backgroundImage

sets backgroundImage for parent component

TypeDefault
object (image)none

backgroundImageStyle

styling for backgroundImage in the main container

TypeDefault
stylenone

elevated

elevation for header

TypeDefault
booleanfalse

barStyle

Sets the color of the status bar text.

TypeDefault
'default', 'light-content', 'dark-content''default' (source)

centerComponent

define your center component here

TypeDefault
{ text: string, ...Text props}
OR
{ icon: string, ...Icon props}
OR
React element or component
none

centerContainerStyle

styling for container around the centerComponent

TypeDefault
style{ flex: 3 }

containerStyle

styling around the main container

TypeDefault
stylenone

leftComponent

define your left component here

TypeDefault
{ text: string, ...Text props}
OR
{ icon: string, ...Icon props}
OR
React element or component
none

leftContainerStyle

styling for container around the leftComponent

TypeDefault
style{ flex: 1 }

linearGradientProps

displays a linear gradient. See usage.

TypeDefault
{...Gradient props}none

placement

Alignment for title

TypeDefault
'left', 'center' or 'right''center'

rightComponent

define your right component here

TypeDefault
{ text: string, ...Text props}
OR
{ icon: string, ...Icon props}
OR
React element or component
none

rightContainerStyle

styling for container around the rightComponent

TypeDefault
style{ flex: 1 }

statusBarProps

accepts all props for StatusBar

TypeDefault
{ ...StatusBar props }none

ViewComponent

component for container

TypeDefault
React Native ComponentImageBackground