diff --git a/src/components/bottomSheet/useTransition.ts b/src/components/bottomSheet/useTransition.ts index a9db85bbb..7dfb4f085 100644 --- a/src/components/bottomSheet/useTransition.ts +++ b/src/components/bottomSheet/useTransition.ts @@ -65,7 +65,7 @@ export const useTransition = ({ const clock = useClock(); const config = useMemo( () => ({ - toValue: new Animated.Value(0), + toValue: new Animated.Value(-1), duration: animationDuration, easing: animationEasing, }), diff --git a/src/hooks/useNormalizedSnapPoints.ts b/src/hooks/useNormalizedSnapPoints.ts index d90a0d202..239ce3177 100644 --- a/src/hooks/useNormalizedSnapPoints.ts +++ b/src/hooks/useNormalizedSnapPoints.ts @@ -8,21 +8,12 @@ export const useNormalizedSnapPoints = ( handleHeight: number = 0 ) => useMemo(() => { - let normalizedSnapPoints = normalizeSnapPoints( + const normalizedSnapPoints = normalizeSnapPoints( snapPoints, containerHeight, topInset ); return normalizedSnapPoints.map(normalizedSnapPoint => { - /** - * if user sets point to zero and `excludeHandleHeight` true, - * we subset handleHeight from the `normalizedSnapPoint` to make - * sure that sheets and its handle will be out of the screen. - */ - if (normalizedSnapPoint === 0 && handleHeight !== 0) { - normalizedSnapPoint = normalizedSnapPoint - handleHeight; - } - return Math.ceil( Math.max(containerHeight - normalizedSnapPoint - handleHeight, topInset) );