Custom header component #795
Replies: 6 comments 4 replies
-
One of the |
Beta Was this translation helpful? Give feedback.
-
We are doing exactly this for our project. The biggest problem we've encountered is that we don't seem to be able to access the screen I can see the screen options are exposed to the navigator, but I can't find a way to access them inside of screens. Does anybody know if this is possible without creating our own custom navigator? |
Beta Was this translation helpful? Give feedback.
-
We don't expose the |
Beta Was this translation helpful? Give feedback.
-
Thank you for replying so quickly @WoLewicki! 🙂 That makes sense. I wanted to check I wasn't missing a way to do this. For now, we have worked around the issue by passing the screen options down to our custom header component. The one downside is that programmatic changes to the title (e.g. via I will definitely think about whether this can be nicely handled in a PR. Thanks again for the help. |
Beta Was this translation helpful? Give feedback.
-
I will move this to Discussions since it is rather a feature request. |
Beta Was this translation helpful? Give feedback.
-
I'm probably in a fairly unique situation. I've put a lot of time into a highly proprietary header component that I've gotten working pretty well with the standard stack navigator from react-navigation 3.x (using Expo also). Ideally I'd be able to switch over to native-screens for performance sake alone. It would be really nice if the same |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
It would be nice to be able to use a custom header component.
Motivation
Then you could easily add a search field, avatars, buttons etc.
Beta Was this translation helpful? Give feedback.
All reactions