Skip to content

Commit

Permalink
fix: scrollble container style crash
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed May 28, 2021
1 parent 7977d23 commit a4b9b93
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export function createBottomSheetScrollableComponent<T, P>(
marginBottom: animatedFooterHeight.value,
}));
const containerStyle = useMemo(
() => [...('length' in style ? style : [style]), containerAnimatedStyle],
() => [
...(style ? ('length' in style ? style : [style]) : []),
containerAnimatedStyle,
],
[style, containerAnimatedStyle]
);
//#endregion
Expand Down

0 comments on commit a4b9b93

Please sign in to comment.