fix: respect headerStatusBarHeight option in Stack (#9405)

Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com>
This commit is contained in:
Adam Trzciński
2021-03-11 13:12:54 +01:00
committed by GitHub
parent bfd6eb79c3
commit 8a6511c491

View File

@@ -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