react-navigation-header-buttons

Easily render header buttons for react-navigation

MIT License

Downloads
9.8K
Stars
843
Committers
24
react-navigation-header-buttons - v1.2.0

Published by vonovak over 6 years ago

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.

react-navigation-header-buttons - v1.1.0

Published by vonovak over 6 years ago

this release includes

  • support for testIDs for e2e tests
  • minor adjustments to flow and TS typings
react-navigation-header-buttons - v1.0.0

Published by vonovak over 6 years ago

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

react-navigation-header-buttons - v0.0.8

Published by vonovak over 6 years ago

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>
  ),
};
react-navigation-header-buttons - v0.0.7

Published by vonovak over 6 years ago

  • if you do not define onPress prop, the rendered button won't respond to touches
react-navigation-header-buttons - v0.0.6

Published by vonovak over 6 years ago

  • added TS definitions
react-navigation-header-buttons - v0.0.5

Published by vonovak over 6 years ago

  • improve location of ripple on the default overflow button
  • improve right margin of the default overflow button
  • new overflowButtonWrapperStyle prop
Package Rankings
Top 2.05% on Npmjs.org
Related Projects