Dynamic header title. #526
Replies: 5 comments 1 reply
-
|
We haven't got documentation on this yet, but since the layouts are simply React Navigation layouts, you can follow the React Navigation documentation https://reactnavigation.org/docs/headers/#replacing-the-title-with-a-custom-component |
Beta Was this translation helpful? Give feedback.
-
|
Just type headerTitle: YourVariableHere |
Beta Was this translation helpful? Give feedback.
-
|
You can do it in _layout.tsx as above docs say, but you can also do it simply in |
Beta Was this translation helpful? Give feedback.
-
|
If i remember, expo uses react-navigation, maybe you can do this on the current component screen: |
Beta Was this translation helpful? Give feedback.
-
|
Or in expo-router you can also do: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a dynamic route [detailScan], but the header title of that route should be dynamic. How can i do this ?
Beta Was this translation helpful? Give feedback.
All reactions