mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 22:51:18 +08:00
fix: add missing check for parent header when calculating height
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user