Skip to content

Commit 2784fa1

Browse files
authored
revert: updated animate method parameter default value (#1757)(by @jeongshin)
1 parent 8b2b618 commit 2784fa1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utilities/animate.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ interface AnimateParams {
1717

1818
export const animate = ({
1919
point,
20-
configs = ANIMATION_CONFIGS,
20+
configs,
2121
velocity = 0,
2222
onComplete,
2323
}: AnimateParams) => {
2424
'worklet';
2525

26+
if (!configs) {
27+
configs = ANIMATION_CONFIGS;
28+
}
29+
2630
// Users might have an accessibility setting to reduce motion turned on.
2731
// This prevents the animation from running when presenting the sheet, which results in
2832
// the bottom sheet not even appearing so we need to override it to ensure the animation runs.

0 commit comments

Comments
 (0)