-
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
[Android] navigationBar title is not in the middle #3142
Comments
You have to adjust the margin to center it vertically. Also, about removing the left margin, if you do that, it'll overlap any buttons on the left. I'm wondering why flexbox is not used to align the buttons and titles instead of absolute positioning. |
@satya164 I just make it like ios. And I use |
This is intentional, based on platform specific ui differences. #3028 makes it possible to use iOS navbar styles on Android and vice versa. |
Thank you .It's worked for me. |
@brentvatne What are the platform specific UI differences that you are referring to regarding this issue? I am not very familiar with Android UI but from what I understand, there is a navigation stack that is maintained when an intent starts a new activity but there is no standard navigation bar with a title and back button as there is in iOS. So why is it that the title is not centred by default like in iOS? |
The problem still exists. After wasting 2 hours of my time trying to debug my styles, I had to resort to this quick fix for solving it. |
@mehdipourfar if you do as
it works for me. |
this is the demo https://rnplay.org/apps/egL8Cw.
The text was updated successfully, but these errors were encountered: