Header component for react-native page view
- Header
- HeaderLeft
- HeaderBody
- HeaderRight
npm i @fidisys/header --save
import { Header,HeaderBody, HeaderRight, HeaderLeft } from '@fidisys/header'
<Container
style={{
alignItems: 'center'
}}>
<Header>
<HeaderLeft>
<IconButton buttonEvent={() => this.goBack()}>
<Icon size={22} color="white" name="md-arrow-back" />
</IconButton>
</HeaderLeft>
<HeaderBody>
<Text style={{color: 'white' }}>Header Title</Text>
</HeaderBody>
<HeaderRight />
</Header>
</Container>
Prop | Type | Default | Description |
---|---|---|---|
style | React-Native StyleSheet Object | null | Custom styling for container view |
statusbarColor | string | 'blue' | color for status bar |
barStyle | string('dark-content' | 'light-content') | 'dark-content' |
MIT