Skip to main content

Navbar

A powerful navigation header, the navbar includes support for styling just the way you want it.

Usage

Imports:

import { NavBar } from 'galio-framework';

Simple example:

<NavBar title="Screen Title" />

Advanced examples:

<NavBar
title="Custom NavBar"
back
onLeftPress={() => navigation.goBack()}
right={
<Button size="small" color="primary">
Action
</Button>
}
transparent
titleStyle={{ color: 'white' }}
/>

<NavBar
title="Profile"
left={
<Icon name="menu" family="feather" size={24} />
}
leftStyle={{ marginLeft: 16 }}
right={
<Block row>
<Icon name="search" family="feather" size={24} style={{ marginRight: 16 }} />
<Icon name="more-vertical" family="feather" size={24} />
</Block>
}
rightStyle={{ marginRight: 16 }}
/>

Props

PropTypeDefaultDescription
titlenode, stringnullNavBar title
titleStyleobjectnullCustom title styles
backboolfalseShows back button
onLeftPressfunction() => Left button press handler
leftnodenullCustom left content
leftStyleobjectnullLeft content container styles
leftIconColorstringtheme.COLORS.ICONLeft icon color
rightnodenullCustom right content
rightStyleobjectnullRight content container styles
transparentboolfalseTransparent background
styleobjectnullCustom styles
...View.props--All React Native View props are supported