From eeb71306d3045df17bc00c2f9c688a79985fb11c Mon Sep 17 00:00:00 2001 From: megiSW Date: Tue, 22 Apr 2025 07:01:30 +0200 Subject: [PATCH] fix: set containerHeight to value or initial container height --- src/components/bottomSheetContainer/BottomSheetContainer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/bottomSheetContainer/BottomSheetContainer.tsx b/src/components/bottomSheetContainer/BottomSheetContainer.tsx index 0716ecdb..da7460ef 100644 --- a/src/components/bottomSheetContainer/BottomSheetContainer.tsx +++ b/src/components/bottomSheetContainer/BottomSheetContainer.tsx @@ -7,6 +7,7 @@ import { type ViewStyle, } from 'react-native'; import { WINDOW_HEIGHT } from '../../constants'; +import { INITIAL_CONTAINER_HEIGHT } from '../bottomSheet/constants'; import { print } from '../../utilities'; import { styles } from './styles'; import type { BottomSheetContainerProps } from './types'; @@ -44,7 +45,7 @@ function BottomSheetContainerComponent({ layout: { height }, }, }: LayoutChangeEvent) { - containerHeight.value = height; + containerHeight.value = height || INITIAL_CONTAINER_HEIGHT; containerRef.current?.measure( (_x, _y, _width, _height, _pageX, pageY) => {