Fix #2795 - Not reducing header height in landscape on iPad (#3251)

* Adding tablet check for small header

* Switching to Platform.isPad

* Moving fully to Platform.isPad, no isHeightConstrained
This commit is contained in:
Peter Steffey
2018-02-06 13:40:03 -05:00
parent bb09b7d13d
commit b45fca2086

View File

@@ -292,7 +292,8 @@ class Header extends React.PureComponent {
const { options } = this.props.getScreenDetails(scene);
const { headerStyle } = options;
const appBarHeight = Platform.OS === 'ios' ? (isLandscape ? 32 : 44) : 56;
const appBarHeight =
Platform.OS === 'ios' ? (isLandscape && !Platform.isPad ? 32 : 44) : 56;
const containerStyles = [
styles.container,
{