Patch bottom-sheet to temp fix ReduceMotion issues

This commit is contained in:
Diego Mello 2024-04-17 18:37:52 -03:00
parent 6790bd7c74
commit 4e19ae2118
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
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