We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b62dca commit 9b4ef4dCopy full SHA for 9b4ef4d
src/utilities/animate.ts
@@ -4,6 +4,7 @@ import {
4
withTiming,
5
withSpring,
6
AnimationCallback,
7
+ ReduceMotion,
8
} from 'react-native-reanimated';
9
import { ANIMATION_CONFIGS, ANIMATION_METHOD } from '../constants';
10
@@ -26,6 +27,11 @@ export const animate = ({
26
27
configs = ANIMATION_CONFIGS;
28
}
29
30
+ // Users might have an accessibililty 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.
33
+ configs.reduceMotion = ReduceMotion.Never;
34
+
35
// detect animation type
36
const type =
37
'duration' in configs || 'easing' in configs
0 commit comments