gorhom / react-native-bottom-sheet

A performant interactive bottom sheet with fully configurable options πŸš€
https://gorhom.dev/react-native-bottom-sheet/
MIT License
7.11k stars 780 forks source link

Typescript expect-error issue with ReduceMotion export from reanimated #1947

Closed olie-chan-travelex closed 2 months ago

olie-chan-travelex commented 2 months ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch @gorhom/bottom-sheet@4.6.4 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/@gorhom/bottom-sheet/src/constants.ts b/node_modules/@gorhom/bottom-sheet/src/constants.ts
index e8780b6..6aaa5a3 100644
--- a/node_modules/@gorhom/bottom-sheet/src/constants.ts
+++ b/node_modules/@gorhom/bottom-sheet/src/constants.ts
@@ -1,5 +1,4 @@
 import { Dimensions, Platform } from 'react-native';
-// @ts-expect-error Module '"react-native-reanimated"' has no exported member 'ReduceMotion'
 import Animated, { Easing, ReduceMotion } from 'react-native-reanimated';

 const { height: WINDOW_HEIGHT, width: WINDOW_WIDTH } = Dimensions.get('window');

This issue body was partially generated by patch-package.

github-actions[bot] commented 2 months ago

@olie-chan-travelex: hello! :wave:

This issue is being automatically closed because it does not follow the issue template.