fix header metrics based on Material design guidelines (#2001)

This commit is contained in:
Tiziano Munegato
2017-07-04 08:24:29 +02:00
committed by Adam Miskiewicz
parent 8772e5f373
commit b310b153fd
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ type HeaderState = {
const APPBAR_HEIGHT = Platform.OS === 'ios' ? 44 : 56;
const STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : 0;
const TITLE_OFFSET = Platform.OS === 'ios' ? 70 : 40;
const TITLE_OFFSET = Platform.OS === 'ios' ? 70 : 56;
class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
static HEIGHT = APPBAR_HEIGHT + STATUSBAR_HEIGHT;

View File

@@ -22,7 +22,7 @@ const HeaderTitle = ({ style, ...rest }: Props) => (
const styles = StyleSheet.create({
title: {
fontSize: Platform.OS === 'ios' ? 17 : 18,
fontSize: Platform.OS === 'ios' ? 17 : 20,
fontWeight: Platform.OS === 'ios' ? '600' : '500',
color: 'rgba(0, 0, 0, .9)',
textAlign: Platform.OS === 'ios' ? 'center' : 'left',