From 418c91702163e16be7e5c5a36c7791136a8d56f4 Mon Sep 17 00:00:00 2001 From: Andrei Alecu Date: Mon, 15 Feb 2021 13:46:57 +0200 Subject: [PATCH] fix: assume headerHeight is 0 if HeaderComponent isn't provided (#132) --- src/Container.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Container.tsx b/src/Container.tsx index 8d26309c..65cc1240 100644 --- a/src/Container.tsx +++ b/src/Container.tsx @@ -89,7 +89,7 @@ const Container = React.forwardRef( initialTabBarHeight ) const [headerHeight, setHeaderHeight] = React.useState( - initialHeaderHeight + !HeaderComponent ? 0 : initialHeaderHeight ) const contentInset = React.useMemo(