From c31dfc3460005cc0702b689c03ad3a3beffbf20f Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Mon, 26 Apr 2021 18:10:50 -0300 Subject: [PATCH] fix: expandable section collapsing when re-pressing --- src/components/BottomSheet.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/BottomSheet.tsx b/src/components/BottomSheet.tsx index 8ec90e02..d720bc36 100644 --- a/src/components/BottomSheet.tsx +++ b/src/components/BottomSheet.tsx @@ -320,6 +320,7 @@ export const BottomSheet: React.FC = ({ if (expanded) { animationValue = shouldCollapseSections ? 0 : 1; } + setShouldCollapseSections(false); return { ...section, animationValue: new Animated.Value(animationValue),