Skip to content

Commit ee59e91

Browse files
authored
docs: mention the header buttons lib (#1253)
1 parent f25fef1 commit ee59e91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

versioned_docs/version-6.x/header-buttons.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ function StackScreen() {
3737

3838
When we define our button this way, the `this` variable in `options` is _not_ the `HomeScreen` instance, so you can't call `setState` or any instance methods on it. This is pretty important because it's extremely common to want the buttons in your header to interact with the screen that the header belongs to. So, we will look how to do this next.
3939

40+
> 💡 Please note that a community-developed library for rendering buttons in the header with the correct styling is available: [react-navigation-header-buttons](https://github.com/vonovak/react-navigation-header-buttons).
41+
4042
## Header interaction with its screen component
4143

4244
In some cases, components in the header need to interact with the screen component. For this use case, we need to use `navigation.setOptions` to update our options. By using `navigation.setOptions` inside the screen component, we get access to screen's props, state, context etc.

0 commit comments

Comments
 (0)