mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 04:45:19 +08:00
feat: expose header height in native-stack (#9774)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user