Skip to content

Is it possible to make Animated.timing on an Animated.ValueXY() value ? #16525

@franckmaurin

Description

@franckmaurin

Hello, I try to animate an Animated.ValueXY() value like this

Animated.timing(
  this.state.pan.y,
  { toValue: 100, duration: 250 }
)

or

Animated.timing(
  this.state.pan,
  { toValue: { y: 100 }, duration: 250 }
)

But it doesn't work. What did I miss ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions