mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 17:23:42 +08:00
fix: respect headerStatusBarHeight option in Stack (#9405)
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com>
This commit is contained in:
@@ -47,7 +47,11 @@ export default React.memo(function Header({
|
||||
);
|
||||
|
||||
const statusBarHeight =
|
||||
(isModal && !isFirstRouteInParent) || isParentHeaderShown ? 0 : insets.top;
|
||||
options.headerStatusBarHeight !== undefined
|
||||
? options.headerStatusBarHeight
|
||||
: (isModal && !isFirstRouteInParent) || isParentHeaderShown
|
||||
? 0
|
||||
: insets.top;
|
||||
|
||||
return (
|
||||
<HeaderSegment
|
||||
|
||||
Reference in New Issue
Block a user