mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 09:21:09 +08:00
* Adding tablet check for small header * Switching to Platform.isPad * Moving fully to Platform.isPad, no isHeightConstrained
This commit is contained in:
@@ -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,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user