-
Notifications
You must be signed in to change notification settings - Fork 734
Update version of react-native-reanimated to 2.4.0 #1821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update version of react-native-reanimated to 2.4.0 #1821
Conversation
Swipe the carousel, label does not change color.
For future reference a few workarounds were aded:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@M-i-k-e-l
I wrote small comment
@@ -103,6 +101,7 @@ function PageCarousel({...props}) { | |||
scrollEventThrottle={16} | |||
contentOffset={initialOffset} // iOS only | |||
onLayout={scrollToInitial} // Android only | |||
onMomentumScrollEnd={() => {}} // workaround for useAnimatedScrollHandler.onMomentumEnd not being called (https://github.com/software-mansion/react-native-reanimated/issues/2735) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll override the onMomentumScrollEnd
prop that the user might send, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is VERY strange, if the user sends onMomentumScrollEnd
the workaround stops working (even though this is overriding it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by adding useCallback
* Update versions of react-native-reanimated and react-native-gesture-handler * Update reanimated to 2.3.1 * Fix exposed issue with interpolateColors can't handle undefined values * Bumped reanimated to 2.4.0 * Fix TabController on Android Swipe the carousel, label does not change color. * Fix tests (workarounds) * Remove expect errors * Change function name See https://github.com/software-mansion/react-native-reanimated/pull/2792/files * Remove setup which seems to be no longer needed * Revert to old function (for users who use older versions of reanimated) * Change to noop * Allow overriding onMomentumScrollEnd * Fix types Co-authored-by: Ethan Sharabi <[email protected]> Co-authored-by: Miki Leib <[email protected]> (cherry picked from commit 1a8a07a)
Description
Update version of react-native-reanimated (2.4.0)
Changelog
Update internally versions of react-native-reanimated and react-native-gesture-handler