From a4b9b933268a670fbf6dd1198de61d899abde738 Mon Sep 17 00:00:00 2001 From: Mo Gorhom Date: Fri, 28 May 2021 21:17:46 +0100 Subject: [PATCH] fix: scrollble container style crash --- .../createBottomSheetScrollableComponent.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/bottomSheetScrollable/createBottomSheetScrollableComponent.tsx b/src/components/bottomSheetScrollable/createBottomSheetScrollableComponent.tsx index ac5841780..79b1582ec 100644 --- a/src/components/bottomSheetScrollable/createBottomSheetScrollableComponent.tsx +++ b/src/components/bottomSheetScrollable/createBottomSheetScrollableComponent.tsx @@ -43,7 +43,10 @@ export function createBottomSheetScrollableComponent( marginBottom: animatedFooterHeight.value, })); const containerStyle = useMemo( - () => [...('length' in style ? style : [style]), containerAnimatedStyle], + () => [ + ...(style ? ('length' in style ? style : [style]) : []), + containerAnimatedStyle, + ], [style, containerAnimatedStyle] ); //#endregion