How to set headertitle center in android like ios? #962
-
Does it have any props to control header title align , I want to set headertitle center in android like ios~~~ |
Beta Was this translation helpful? Give feedback.
Answered by
kacperkapusciak
May 31, 2021
Replies: 2 comments 6 replies
-
native stack |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @booyeu, headerCenter: () => <Text>Title</Text> https://github.com/software-mansion/react-native-screens/tree/master/native-stack#headercenter |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
kacperkapusciak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @booyeu,
There isn't a property to directly control title alignment but you could use
headerCenter
property to provide your own title in the center of the header and style it to your needs:https://github.com/software-mansion/react-native-screens/tree/master/native-stack#headercenter