You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
react-native-router-flux v4 (same version as in Example-app, but also tested with 4.0.0-beta.15 with same result)
react-native v0.44.0 (also tested v0.46)
Samsung S7
Android 7.0
Expected behaviour
Title in navigation bar to be centered in both iOS and Android
Actual behaviour
Title in navigaton bar is not centered in Android (but is centered in iOS).
Android (wrong):
iOS (correct):
Steps to reproduce
You can use the Example app:
# Get the code
git clone [email protected]:aksonov/react-native-router-flux.git
cd react-native-router-flux/Example
# Install dependencies
yarn
# Run it
react-native run-android
I have tried to center the title by adding centering-styles to titleStyle- and headerStyle-props, but with no result. The best I can do is adding Android-specific left-padding/margin to titleStyle to make it centered, but that is difficult with different titles and different screen sizes.
The text was updated successfully, but these errors were encountered:
Version
react-native-router-flux v4 (same version as in Example-app, but also tested with 4.0.0-beta.15 with same result)
react-native v0.44.0 (also tested v0.46)
Samsung S7
Android 7.0
Expected behaviour
Title in navigation bar to be centered in both iOS and Android
Actual behaviour
Title in navigaton bar is not centered in Android (but is centered in iOS).
Android (wrong):

iOS (correct):

Steps to reproduce
You can use the Example app:
I have tried to center the title by adding centering-styles to
titleStyle
- andheaderStyle
-props, but with no result. The best I can do is adding Android-specific left-padding/margin totitleStyle
to make it centered, but that is difficult with different titles and different screen sizes.The text was updated successfully, but these errors were encountered: