react-native-bottom-sheet
react-native-bottom-sheet copied to clipboard
Fix EasingFunction type for reanimated 4
Motivation
We are seeing the following typescript error with reanimated 4:
node_modules/@gorhom/bottom-sheet/src/constants.ts:72:34 - error TS2694: Namespace '/node_modules/react-native-reanimated/lib/typescript/Animated"' has no exported member 'EasingFunction'.
72 const ANIMATION_EASING: Animated.EasingFunction = Easing.out(Easing.exp);
~~~~~~~~~~~~~~
Found 1 error in node_modules/@gorhom/bottom-sheet/src/constants.ts:72
This patch fixes the error by explicitly importing the type.
pls merge
Could you merge this @stefandayy ?
Ridiculous it takes more than a month to merge in a few line change that breaks all current versions of the package.
The same issue, please merge
Ah I have the same PR open https://github.com/gorhom/react-native-bottom-sheet/pull/2481
But yeah, its been some time and this is a very easy fix