Skip to content

Commit

Permalink
fix: fix bug with reanimated
Browse files Browse the repository at this point in the history
  • Loading branch information
dohooo committed Nov 1, 2021
1 parent 0387cf3 commit 6744f74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,9 @@ function Carousel<T extends unknown = any>(
function _withAnimationCallback(num: number) {
return withSpring(
num,
{
...timingConfig,
Object.assign({}, timingConfig, {
velocity: e.velocityX,
},
}),
(isFinished) => {
if (isFinished) {
runOnJS(onScrollEnd)();
Expand Down

0 comments on commit 6744f74

Please sign in to comment.