File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 44 withTiming ,
55 withSpring ,
66 AnimationCallback ,
7+ // @ts -ignore
8+ ReduceMotion ,
79} from 'react-native-reanimated' ;
810import { ANIMATION_CONFIGS , ANIMATION_METHOD } from '../constants' ;
911
@@ -26,6 +28,14 @@ export const animate = ({
2628 configs = ANIMATION_CONFIGS ;
2729 }
2830
31+ // Users might have an accessibililty setting to reduce motion turned on.
32+ // This prevents the animation from running when presenting the sheet, which results in
33+ // the bottom sheet not even appearing so we need to override it to ensure the animation runs.
34+ if ( ReduceMotion ) {
35+ // @ts -ignore
36+ configs . reduceMotion = ReduceMotion . Never ;
37+ }
38+
2939 // detect animation type
3040 const type =
3141 'duration' in configs || 'easing' in configs
You can’t perform that action at this time.
0 commit comments