Skip to content

Commit

Permalink
fix: add missing check for parent header when calculating height
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Oct 23, 2020
1 parent 38e17aa commit da91cec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/stack/src/views/Header/HeaderContainer.tsx
Expand Up @@ -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 (
Expand Down

0 comments on commit da91cec

Please sign in to comment.