fix: expandable section collapsing when re-pressing

This commit is contained in:
Antonella Sgarlatta
2021-04-26 18:10:50 -03:00
parent 262dddab9f
commit c31dfc3460

View File

@@ -320,6 +320,7 @@ export const BottomSheet: React.FC<Props> = ({
if (expanded) {
animationValue = shouldCollapseSections ? 0 : 1;
}
setShouldCollapseSections(false);
return {
...section,
animationValue: new Animated.Value(animationValue),