Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated.View does not update exiting/entering layout animations dynamically #5938

Open
Julioevm opened this issue Apr 26, 2024 · 1 comment
Labels
Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@Julioevm
Copy link

Description

I'm encountering the same issue that was described on #3662 I it supposedly fixed by #5371 but Im testing this on reanimated 3.8.1 and I am encountering the same issue.

If I update the entering / exiting value of an Animated.view, the old one will play instead of the new one. Only in a freshly created element will the new effect show up.

I also tried the workaround that was used in the issue, creating a custom animation but the result is the same.

Steps to reproduce

  1. Set the exiting property on a Animated.view component.
  2. Update its value, which is calculated from a sharedValue.
  3. Trigger a re-render.
  4. The old animation still plays on the exiting event of the element.

Snack or a link to a repository

https://snack.expo.dev/@julioevm/reanimated-changing-entering-and-exiting

Reanimated version

3.8.1

React Native version

0.73

Platforms

Android, iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

Real device

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided labels Apr 26, 2024
@hanwenbo
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided
Projects
None yet
Development

No branches or pull requests

2 participants