Skip to content

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

Closed

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 ?

Activity

  1. changed the title [-]Is it possible to make Animated.timing on a Animated.ValueXY() value ?[/-] [+]Is it possible to make Animated.timing on an Animated.ValueXY() value ?[/+] on Oct 24, 2017
  2. react-native-bot commented on Oct 24, 2017

    @react-native-bot
    Collaborator
  3. facebook-github-bot commented on Oct 24, 2017

    @facebook-github-bot
    Contributor

    Hey @franckmaurin, thanks for posting this! It looks like your issue is missing some required information. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce your issue. I am going to close this, but please feel free to open a new issue with the additional information provided. Thanks!

    How to Contribute • What to Expect from Maintainers

  4. locked as resolved and limited conversation to collaborators on Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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