Rocket.Chat.ReactNative/patches/@gorhom+bottom-sheet+4.6.1....

22 lines
719 B
Diff
Raw Normal View History

diff --git a/node_modules/@gorhom/bottom-sheet/src/utilities/animate.ts b/node_modules/@gorhom/bottom-sheet/src/utilities/animate.ts
index 0ce4c9a..2f55a33 100644
--- a/node_modules/@gorhom/bottom-sheet/src/utilities/animate.ts
+++ b/node_modules/@gorhom/bottom-sheet/src/utilities/animate.ts
@@ -4,6 +4,7 @@ import {
withTiming,
withSpring,
AnimationCallback,
+ ReduceMotion
} from 'react-native-reanimated';
import { ANIMATION_CONFIGS, ANIMATION_METHOD } from '../constants';
@@ -26,6 +27,8 @@ export const animate = ({
configs = ANIMATION_CONFIGS;
}
+ configs.reduceMotion = ReduceMotion.Never;
+
// detect animation type
const type =
'duration' in configs || 'easing' in configs