Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save paulomcnally/51dde9fc900594a085fb0b802bd8c9a4 to your computer and use it in GitHub Desktop.

Select an option

Save paulomcnally/51dde9fc900594a085fb0b802bd8c9a4 to your computer and use it in GitHub Desktop.
import HeaderButtons from 'react-navigation-header-buttons';
import Icon from 'react-native-vector-icons/Ionicons';
static navigationOptions = {
title: 'Usage With Icons',
headerRight: (
<HeaderButtons IconComponent={Ionicons} iconSize={23} color="blue">
<HeaderButtons.Item title="add" iconName="ios-search" onPress={() => console.warn('add')} />
<HeaderButtons.Item title="select" onPress={() => console.warn('edit')} />
</HeaderButtons>
),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment