react-native-bottom-sheet icon indicating copy to clipboard operation
react-native-bottom-sheet copied to clipboard

Fix EasingFunction type for reanimated 4

Open milomord opened this issue 2 months ago • 5 comments

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.

milomord avatar Oct 08 '25 18:10 milomord

pls merge

AnkushSarkar10 avatar Oct 25 '25 15:10 AnkushSarkar10

Could you merge this @stefandayy ?

Tiago-Dev avatar Oct 31 '25 20:10 Tiago-Dev

Ridiculous it takes more than a month to merge in a few line change that breaks all current versions of the package.

FishPhd avatar Nov 10 '25 21:11 FishPhd

The same issue, please merge

amalkov avatar Nov 22 '25 21:11 amalkov

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

LeunensMichiel avatar Nov 27 '25 14:11 LeunensMichiel