Skip to content

Commit b81cb93

Browse files
beqramogorhom
andcommitted
fix: updated containerOffset top value to default to 0 (#1420)(by @beqramo)
* fix: keyboard on focus * fix: updated containerOffset top value to default to 0 --------- Co-authored-by: Mo Gorhom <gorhom.dev@gmail.com>
1 parent f6f2304 commit b81cb93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/bottomSheetContainer/BottomSheetContainer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ function BottomSheetContainerComponent({
4949
containerRef.current?.measure(
5050
(_x, _y, _width, _height, _pageX, pageY) => {
5151
containerOffset.value = {
52-
top: pageY,
52+
top: pageY ?? 0,
5353
left: 0,
5454
right: 0,
5555
bottom: Math.max(
5656
0,
57-
WINDOW_HEIGHT - (pageY + height + (StatusBar.currentHeight ?? 0))
57+
WINDOW_HEIGHT - ((pageY ?? 0) + height + (StatusBar.currentHeight ?? 0))
5858
),
5959
};
6060
}

0 commit comments

Comments
 (0)