Skip to content

Releases: vonovak/react-navigation-header-buttons

v1.2.0

21 Jun 06:20
Compare
Choose a tag to compare

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

18 Jun 18:50
Compare
Choose a tag to compare

this release includes

  • support for testIDs for e2e tests
  • minor adjustments to flow and TS typings

v1.0.0

18 May 22:04
Compare
Choose a tag to compare

OverflowIcon is now required if you need overflow buttons. No default OverflowIcon is provided. There are no other steps needed to upgrade.

v0.0.8

11 May 22:26
Compare
Choose a tag to compare

you can now import HeaderButtons with predefined IconComponent, see the comparison. Please note this was removed in 1.0.0

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>
  ),
};

v0.0.7

06 Apr 17:55
Compare
Choose a tag to compare
  • if you do not define onPress prop, the rendered button won't respond to touches

v0.0.6

05 Apr 17:05
Compare
Choose a tag to compare
  • added TS definitions

v0.0.5

13 Mar 21:41
Compare
Choose a tag to compare
  • improve location of ripple on the default overflow button
  • improve right margin of the default overflow button
  • new overflowButtonWrapperStyle prop