-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Header not up to Material Design spec? #1550
Comments
Looked like a relevant issue–not sure why it was closed: #795 |
@yarian What is the tool you used to measure this? |
I copied a screenshot unto Sketch. I ended up getting the correct guidelines by adding the following styles to different components in the Header:
To the
To
To I add |
Same happening for me too. @yarian s solution is not working for me . Any other fixes for this @SupriyaKalghatgi ? |
@yarian Add block attribute too. |
@rohithramachandran Are you sure? It's working for me (using v2.4.1). <Root>
<Container>
<Header style={styles.topMargin}>
<Left style={{ backgroundColor: "green", flex: 0, flexBasis: 48 }}>
<Button transparent>
<Icon name="more" />
</Button>
</Left>
<Body style={{ backgroundColor: "#00adef", flex: 1 }}>
<Title>Awesome App With Very Very Long Title</Title>
</Body>
<Right style={{ backgroundColor: "green", flex: 0, flexBasis: 48 }}>
<Button transparent>
<Icon name="more" />
</Button>
</Right>
</Header>
</Container>
</Root> Removing |
Fixed with 2.4.3 |
react-native, react and native-base version
react-native
0.52.0
react
16.2.0
native-base
^2.3.3
Reproduction
I am getting results that don't line up with Material UI Guidelines on headers.
Actual Behavior
Expected behaviour
I expect Left to not be so large and Title to line up with the 72dp guideline.
Is the bug present in both ios and android or in any one of them?
Android
The text was updated successfully, but these errors were encountered: