Stay informed
Subscribe to our newsletter if you'd like to stay informed about Shoutem Extensions and Shoutem UI Toolkit.
NavigationBar component is Node for Navigator React Native component.
It provides a simpler way to use 3-column Navigation bar without reinventing the wheel.

<NavigationBar
centerComponent={<Title>TITLE</Title>}
/>

<NavigationBar
styleName="clear"
centerComponent={<Title>TITLE</Title>}
/>

<Image
source={{uri: 'https://myark.github.io/shoutem-cn/img/ui-toolkit/examples/image-3.png'}}
>
<NavigationBar
styleName="clear"
centerComponent={<Title>TITLE</Title>}
/>
</Image>

<NavigationBar
styleName="fade clear"
centerComponent={<Title>TITLE</Title>}
/>

<Image
source={{uri: 'https://myark.github.io/shoutem-cn/img/ui-toolkit/examples/image-3.png'}}
>
<NavigationBar
styleName="fade"
centerComponent={<Title>TITLE</Title>}
/>
</Image>

<NavigationBar
leftComponent={<Icon name="sidebar" />}
centerComponent={<Title>TITLE</Title>}
/>

<NavigationBar
leftComponent={<Icon name="sidebar" />}
centerComponent={<Title>TITLE</Title>}
rightComponent={<DropDownMenu
options={[
{ name: 'All', value: 1 },
{ name: 'Sport', value: 1 },
{ name: 'World', value: 1 },
{ name: 'Lifestyle', value: 1 },
{ name: 'Food', value: 1 },
{ name: 'Music', value: 1 },
{ name: 'Movies', value: 1 },
{ name: 'Tech', value: 1 },
{ name: 'Fun', value: 1 },
{ name: 'Fashion', value: 1 },
]}
titleProperty="name"
valueProperty="value"
/>}
/>

<NavigationBar
leftComponent={<Icon name="sidebar" />}
centerComponent={<Title>TITLE</Title>}
rightComponent={(
<Button styleName="clear">
<Text>List</Text>
</Button>
)}
/>
![]()
<NavigationBar
leftComponent={<Icon name="sidebar" />}
centerComponent={<Title>TITLE</Title>}
rightComponent={(
<Button>
<Icon name="cart" />
</Button>
)}
/>
![]()
<NavigationBar
hasHistory
title="TITLE"
share={{
link: 'https://myark.github.io/shoutem-cn',
text: 'This is the best',
title: 'Super cool UI Toolkit',
}}
/>

<NavigationBar
styleName="no-border"
hasHistory
title="TITLE"
share={{
link: 'https://myark.github.io/shoutem-cn',
text: 'This is the best',
title: 'Super cool UI Toolkit',
}}
/>

<NavigationBar
hasHistory
title="TITLE"
rightComponent={(
<Button styleName="clear">
<Text>Report</Text>
</Button>
)}
/>
![]()
<NavigationBar
leftComponent={(
<Button>
<Icon name="close" />
</Button>
)}
title="TITLE"
share={{
link: 'https://myark.github.io/shoutem-cn',
text: 'This is the best',
title: 'Super cool UI Toolkit',
}}
/>

<NavigationBar
leftComponent={(
<Button>
<Icon name="close" />
</Button>
)}
title="TITLE"
rightComponent={(
<Button styleName="clear">
<Text>Post</Text>
</Button>
)}
/>

<NavigationBar
leftComponent={(
<Button>
<Text>Cancel</Text>
</Button>
)}
title="TITLE"
rightComponent={(
<Button>
<Text>Done</Text>
</Button>
)}
/>

<NavigationBar
leftComponent={(
<Button>
<Text>Cancel</Text>
</Button>
)}
title="TITLE"
rightComponent={(
<Button styleName="muted">
<Text>Done</Text>
</Button>
)}
/>

<NavigationBar
styleName="clear"
hasHistory
title="TITLE"
share={{
link: 'https://myark.github.io/shoutem-cn',
text: 'This is the best',
title: 'Super cool UI Toolkit',
}}
/>
NavigationBar (example: back button)NavigationBar (example: screen title)NavigationBar (example: dropdown menu button)true, the leftComponent will become a back arrow and will trigger the navigateBack callbackhasHistory Prop is set to trueText color to white and background colors to transparentText color to white and applies linear gradient to backgroundView that holds all components within NavigationBarView container that holds leftComponent, centerComponent and rightComponent objects