Releases: vonovak/react-navigation-header-buttons
Releases · vonovak/react-navigation-header-buttons
v1.2.0
This release includes a new onOverflowMenuPress?: ({ hiddenButtons: Array<React.Element<*>> })=>any
prop which you can use to handle tapping on the overflow button. This may be handy if the default handlers do not fit your needs.
onOverflowMenuPress
accepts a single parameter - an object with hiddenButtons
key.
v1.1.0
v1.0.0
v0.0.8
you can now import Please note this was removed in 1.0.0HeaderButtons
with predefined IconComponent
, see the comparison.
ex:
import { IoniconHeaderButtons, Item } from 'react-navigation-header-buttons'
static navigationOptions = {
title: 'Usage With Icons',
headerRight: (
<IoniconHeaderButtons color="blue">
<Item title="add" iconName="ios-search" onPress={() => console.warn('add')} />
<Item title="select" onPress={() => console.warn('edit')} />
</IoniconHeaderButtons>
),
};