From b2fbaafebe3c85501f74ddbde23455356ce8b9b4 Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Mon, 26 Apr 2021 15:49:27 -0300 Subject: [PATCH] Update src/components/BottomSheet.tsx Co-authored-by: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> --- src/components/BottomSheet.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/BottomSheet.tsx b/src/components/BottomSheet.tsx index 94f3d85a..a239a3f8 100644 --- a/src/components/BottomSheet.tsx +++ b/src/components/BottomSheet.tsx @@ -335,10 +335,7 @@ export const BottomSheet: React.FC = ({ setListHeight(e.nativeEvent.layout.height); }; - const contentHeight = useMemo(() => titleHeight + listHeight, [ - titleHeight, - listHeight, - ]); + const contentHeight = titleHeight + listHeight; const snapPoints = useMemo(() => { const screenHeight = Dimensions.get('window').height;