From db1fdfff3519862eb9025c11c1b2ac6a860433b4 Mon Sep 17 00:00:00 2001 From: Kuntimaddi Manideep Date: Tue, 17 Dec 2024 16:44:16 +0530 Subject: [PATCH] fix: customTab height fix (#166) --- src/components/common/Pager.res | 2 +- src/components/common/TopTabScreenWraper.res | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/Pager.res b/src/components/common/Pager.res index f7d80b2..d3760ff 100644 --- a/src/components/common/Pager.res +++ b/src/components/common/Pager.res @@ -280,7 +280,7 @@ let make = ( } }, (layout.width, panX)) - let (height, setHeight) = React.useState(_ => 0.) + let (height, setHeight) = React.useState(_ => 100.) let setDynamicHeight = React.useCallback1(height => { setHeight(_ => height) diff --git a/src/components/common/TopTabScreenWraper.res b/src/components/common/TopTabScreenWraper.res index 994c478..9a42c1b 100644 --- a/src/components/common/TopTabScreenWraper.res +++ b/src/components/common/TopTabScreenWraper.res @@ -3,7 +3,7 @@ open Style @react.component let make = (~children, ~setDynamicHeight, ~isScreenFocus) => { - let (viewHeight, setViewHeight) = React.useState(_ => 0.) + let (viewHeight, setViewHeight) = React.useState(_ => 100.) let updateTabHeight = (event: Event.layoutEvent) => { let {height} = event.nativeEvent.layout if height > 100. && (viewHeight -. height)->Math.abs > 10. {