-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Title is not vertically centered in <Navigator.NavigationBar> when using custom height #9174
Comments
You can try following workaround (you still need to use negative margin):
And pass as prop to your |
That did the trick @ifours, thank you! Not sure if I should close the issue tho... maybe the core team should still take a look (so we don't have to use a workaround + negative margins)? |
@facebook-github-bot label Icebox |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/title-is-not-vertically-centered-in-navigatornavigationbar-when-using-custom-height ProductPains helps the community prioritize the most important issues thanks to its voting feature. Also, if this issue is a bug, please consider sending a PR with a fix. |
@facebook-github-bot close |
@charpeni tells me to close this issue. If you think it should still be opened let us know why. |
When using custom height of
50
, this is what I get for<Navigator.NavigationBar style={{height: 50}}>
(as you can see it's not vertically centered):When using a negative
marginTop
to adjust both the back button and the title, it cuts off the top of the back button:What's the proper way to fix this (preferably without negative margin)?
RN 0.30 / Mac OS X 10.11.5 / iPhone 6 / iOS 9.3
P.S: I could only find this other issue, but it's not too helpful: #3142
The text was updated successfully, but these errors were encountered: