You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
henrymoulton
changed the title
Layout Animation when trying to add to first element of list
Layout Animation on Animated/Reanimated when trying to add to first element of list
Sep 27, 2022
Hello, I come here to try to help in reproducing this issue. I still have the same issue reported and can't figure it out how to solve it. Basically if we add items at last position the animation works great by only animating the just inserted item, but when the new item is inserted first in the array all the other items jumps and then animate to the final position.
Here I recorded a video on iOS simulator where when I hit Add Entry we can see how the other items are going down first and then animate up. I expect to those items just move up without jumping and the new item just animates.
(sorry the video is failing to upload)
I also created a snack with very basic code to just show the issue. I intentionally put a 3 seconds animation to make sure we can easily see the jumpy cells.
I use the list inverted because it is a chat app. I also need to insert the items first because of the same reason.
Current behavior
Adding an item to the end of the list and animating it in using the Layout Animation documentation works great.
Simulator.Screen.Recording.-.iPhone.13.-.2022-09-27.at.14.53.34.mp4
However, when trying to animate in an item at the beginning of the list it's a bit buggy:
Simulator.Screen.Recording.-.iPhone.13.-.2022-09-27.at.14.51.59.mp4
Expected behavior
Items that are new in the list (I assume from using a unique key, should animate in nicely).
To Reproduce
Platform:
Environment
"@shopify/flash-list": "^1.3.0",
The text was updated successfully, but these errors were encountered: