Skip to content

Commit

Permalink
docs: tweak integration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed Jan 19, 2021
1 parent 95a4cbb commit 476e1b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ const MaterialHeaderButton = (props) => (
export const MaterialHeaderButtons = (props) => {
return <HeaderButtons HeaderButtonComponent={MaterialHeaderButton} {...props} />;
};
export { Item } from 'react-navigation-header-buttons';
```

2 . Import header buttons from the file defined previously.

```js
// SomeScreen.js
import { MaterialHeaderButtons, Item } from './MyHeaderButtons'
import { MaterialHeaderButtons } from './MyHeaderButtons'
import { Item } from 'react-navigation-header-buttons';

static navigationOptions = {
title: 'Screen with header buttons',
Expand Down

0 comments on commit 476e1b6

Please sign in to comment.