-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 FlatList doesn't re-render correctly when last item deleted on Android #1748
Comments
Issue validatorThe issue is invalid!
|
I think I'm seeing a similar issue on iOS. I made a little progress adding a |
This is labelled as Reanimated 1 problem. But she is using Reanimated: 2.0.0-rc.3 |
No, @helgifeiti is using |
@jakub-gonet I've updated the example code using v2 standards. I've only found one issue on the internet which seems to be the same as this one: facebook/react-native#27206, makes me think maybe this is unrelated to the reanimated lib. |
But you still use |
Closing this as this is not a react-native-reanimated issue, but an Android specific issue, same as is reported here: meliorence/react-native-snap-carousel#623 |
Description
I'm trying to use an Animated FlatList using the libraries reanimated and gesture-handler from you guys. I have a horizontal list of items that have an option to be removed when you click an x in the corner.
This is working fine on iPhone, however on Android it seems the default scrolling when the last item in the list is removed stays put, displaying a non-existing empty item (leaving the component where the item was blank), instead of being re-rendered to the new last item in the updated array.
Code
Steps to reproduce
Make an Animated FlatList with the option to delete items in the list.
Expected behaviour
List is updated by showing the new last item in the list instead of the deleted item
Actual behaviour
Place where item was deleted is just blank and you have to touch the screen so that the list updates
Package versions
The text was updated successfully, but these errors were encountered: