feat: expose header height in native-stack (#9774)

This commit is contained in:
Wojciech Lewicki
2021-08-01 16:04:25 +02:00
committed by GitHub
parent de84458960
commit 20abccda0d
4 changed files with 176 additions and 105 deletions

View File

@@ -282,7 +282,7 @@ function CardContainer({
value={isParentHeaderShown || headerShown !== false}
>
<HeaderHeightContext.Provider
value={headerShown ? headerHeight : parentHeaderHeight}
value={headerShown ? headerHeight : parentHeaderHeight ?? 0}
>
{renderScene({ route: scene.descriptor.route })}
</HeaderHeightContext.Provider>