refactor: rename 'timing' option to 'animation' in transition spec

This commit is contained in:
satyajit.happy
2019-08-28 15:45:09 +02:00
parent e22a0213c8
commit 422bc00bc2
5 changed files with 16 additions and 16 deletions

View File

@@ -295,7 +295,7 @@ export default class Card extends React.Component<Props> {
]),
cond(
eq(isVisible, 1),
openingSpec.timing === 'spring'
openingSpec.animation === 'spring'
? memoizedSpring(
this.clock,
{ ...this.transitionState, velocity: this.transitionVelocity },
@@ -306,7 +306,7 @@ export default class Card extends React.Component<Props> {
{ ...this.transitionState, frameTime: this.frameTime },
{ ...openingSpec.config, toValue: this.toValue }
),
closingSpec.timing === 'spring'
closingSpec.animation === 'spring'
? memoizedSpring(
this.clock,
{ ...this.transitionState, velocity: this.transitionVelocity },