Fix a header on Android (#437)

This commit is contained in:
Mike Grabowski
2017-02-22 12:28:53 +01:00
committed by GitHub
parent 4d1e531c6b
commit f54578c0f9

View File

@@ -220,7 +220,7 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
// On iOS, width of left/right components depends on the calculated
// size of the title.
const onLayoutIOS = name === 'title'
const onLayoutIOS = Platform.OS === 'ios' && name === 'title'
? (e: LayoutEvent) => {
this.setState({
widths: {