diff --git a/packages/elements/package.json b/packages/elements/package.json index e7f38e77e7..19c64f57d6 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -1,5 +1,5 @@ { - "name": "@react-navigation/elements", + "name": "@react-native-oh-tpl/elements", "description": "UI Components for React Navigation", "version": "1.3.21", "keywords": [ @@ -11,11 +11,11 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/react-navigation/react-navigation.git", + "url": "https://github.com/react-native-oh-library/react-navigation.git", "directory": "packages/elements" }, "bugs": { - "url": "https://github.com/react-navigation/react-navigation/issues" + "url": "https://github.com/react-native-oh-library/react-navigation/issues" }, "homepage": "https://reactnavigation.org", "main": "lib/commonjs/index.js", diff --git a/packages/elements/src/Header/getDefaultHeaderHeight.tsx b/packages/elements/src/Header/getDefaultHeaderHeight.tsx index cb117b900e..6861de4f85 100644 --- a/packages/elements/src/Header/getDefaultHeaderHeight.tsx +++ b/packages/elements/src/Header/getDefaultHeaderHeight.tsx @@ -31,6 +31,17 @@ export default function getDefaultHeaderHeight( } } else if (Platform.OS === 'android') { headerHeight = 56; + // @ts-ignore + } else if (Platform.OS === 'harmony') { + if (isLandscape) { + headerHeight = 32; + } else { + if (modalPresentation) { + headerHeight = 56; + } else { + headerHeight = 44; + } + } } else { headerHeight = 64; }