fix: add missing check for parent header when calculating height

This commit is contained in:
Satyajit Sahoo
2020-10-23 02:37:36 +02:00
parent 38e17aae93
commit da91cec941

View File

@@ -61,7 +61,10 @@ export default function HeaderContainer({
const parentPreviousScene = React.useContext(PreviousSceneContext);
const [headerHeightAnim] = React.useState(
() => new Animated.Value(getDefaultHeaderHeight(layout, insets.top))
() =>
new Animated.Value(
getDefaultHeaderHeight(layout, isParentHeaderShown ? 0 : insets.top)
)
);
return (