Patch bottom-sheet to temp fix ReduceMotion issues
This commit is contained in:
parent
6790bd7c74
commit
4e19ae2118
|
@ -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
|
Loading…
Reference in New Issue