We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b2b618 commit 2784fa1Copy full SHA for 2784fa1
src/utilities/animate.ts
@@ -17,12 +17,16 @@ interface AnimateParams {
17
18
export const animate = ({
19
point,
20
- configs = ANIMATION_CONFIGS,
+ configs,
21
velocity = 0,
22
onComplete,
23
}: AnimateParams) => {
24
'worklet';
25
26
+ if (!configs) {
27
+ configs = ANIMATION_CONFIGS;
28
+ }
29
+
30
// Users might have an accessibility setting to reduce motion turned on.
31
// This prevents the animation from running when presenting the sheet, which results in
32
// the bottom sheet not even appearing so we need to override it to ensure the animation runs.
0 commit comments