mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-25 12:05:52 +08:00
refactor: rename 'timing' option to 'animation' in transition spec
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user