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

1st item in an inverted list is no longer animated after a while with itemLayoutAnimation #6038

Open
AlexLacoste opened this issue May 21, 2024 · 1 comment
Assignees
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

@AlexLacoste
Copy link

Description

1st item in an inverted list is no longer animated after a while with itemLayoutAnimation.

Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-05-21.at.12.07.51.mp4

You can try with the snack.

Steps to reproduce

Use inverted Animated.Flatlist with itemLayoutAnimation LinearTransition
Add 5-6 items to the list and the problem occurs.

Snack or a link to a repository

https://snack.expo.dev/@decoste/chat-reanimated-flatlist

Reanimated version

3.10.1

React Native version

0.74.1

Platforms

Android, iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

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 May 21, 2024
@exploIF exploIF self-assigned this May 28, 2024
@exploIF
Copy link
Member

exploIF commented Jun 3, 2024

Hi @AlexLacoste , I've verified your issue and it looks like it's not issue with reanimated nor inverted animated flat list component. Issue is related to react native and adding new elements at the beginning of the list. I've reported that. If I can suggest some workaround for you, you can try avoiding adding elements at the beginning of the list, then everything should works fine

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