Static navigation bar that mimics that found within ReactNative. To be used when you want a static representation of the NavBar, without transitions.
type: node
type: node
type: string
import {
NavBar,
NavTouchableIcon,
BackIcon,
NavTouchableText
} from 'panza'
<NavBar
backgroundColor='primary'
mt={2}
LeftButton={(
<NavTouchableIcon onPress={() => navigator.pop()}>
<BackIcon color='white' />
</NavTouchableIcon>
)}
RightButton={(
<NavTouchableText color='white'>
Save
</NavTouchableText>
)}
title='Title'
titleColor='white'
/>
<NavBar
mt={2}
LeftButton={(
<NavTouchableText>
Cancel
</NavTouchableText>
)}
RightButton={(
<NavTouchableText disabled>
Save
</NavTouchableText>
)}
title='Touchable Text'
/>
<SubNav
options={[
{
label: 'Option one',
onPress: noop
},
{
label: 'Option two',
onPress: noop
},
{
label: 'Option three',
onPress: noop
}
]}
/>