Skip to content

Commit

Permalink
Merge branch 'main' into detox-rn-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanskar2001 authored Dec 17, 2024
2 parents 37f2213 + db1fdff commit 3d97ca8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/common/Pager.res
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/TopTabScreenWraper.res
Original file line number Diff line number Diff line change
Expand Up @@ -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. {
Expand Down

0 comments on commit 3d97ca8

Please sign in to comment.