How to consequently animate several elements with react-native-reanimated?
Asked Answered
C

1

6

Assuming I have two Views and I need to animate them consequently, i.e.

  1. First view animates
  2. First view finishes animation, second view animates

How exactly do I do that with react-native-reanimated? I've found very little information in the onboarding docs, so what is the best practice of doing this?

Corbicula answered 25/12, 2019 at 7:24 Comment(0)
K
-1

I need to animate them consequently

It's a little bit complicated to understand what you want to achieve. I would advise to

  1. Clone the repo
git clone [email protected]:software-mansion/react-native-reanimated.git
  1. Run
  yarn
  cd Example
  yarn
  cd ios && pod install && cd .. # if using IOS devices
  yarn start

You are going to have access to plenty of examples

enter image description here

Kling answered 30/4, 2020 at 7:44 Comment(1)
yeah, not it, actually, I have traversed through them. The goal is to replicate Animated.sequence([]) behavior, but with Reanimated insteadCorbicula

© 2022 - 2024 — McMap. All rights reserved.