mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 21:05:29 +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 { options } = this.props.getScreenDetails(scene);
|
||||||
const { headerStyle } = options;
|
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 = [
|
const containerStyles = [
|
||||||
styles.container,
|
styles.container,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user