Skip to content

Commit

Permalink
typescript fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Latropos committed Aug 30, 2024
1 parent 1eca3fd commit 8f466ad
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,7 @@ describe('entering with custom animation (withDelay + withTiming color changes)
100: { transform: [{ translateY: 200 }], easing: Easing.elastic(10) },
}).duration(2000);

const linearAnimation1 = new Keyframe({
0: {
transform: [{ translateY: 0 }],
easing: Easing.elastic(10), // This easing is unused
},
100: { transform: [{ translateY: 200 }] },
}).duration(500);

const linearAnimation2 = new Keyframe({
const linearAnimation = new Keyframe({
0: { transform: [{ translateY: 0 }] },
100: { transform: [{ translateY: 200 }] },
}).duration(500);
Expand Down Expand Up @@ -153,8 +145,7 @@ describe('entering with custom animation (withDelay + withTiming color changes)
[rotateAroundCornerAnimation, 'rotateAroundCorner'],
[changeBordersAnimation, 'changeBorders'],
[elasticAnimation, 'elastic'],
[linearAnimation1, 'linear'],
[linearAnimation2, 'linear'], // compare with the same snapshot as above
[linearAnimation, 'linear'],
] as Array<[ReanimatedKeyframe, keyof typeof Snapshots]>)(
'Test keyframe animation **${1}**',
async ([keyframeAnimation, snapshotName]) => {
Expand Down

0 comments on commit 8f466ad

Please sign in to comment.