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

Jumpy behavior when prepending items while outside of the autoscrollToTopThreshold #22

Closed
markoj3s opened this issue Jul 15, 2021 · 3 comments

Comments

@markoj3s
Copy link

Hi!

Am I the only one who is getting a jumpy/flickering behavior on Android with below config?

<FlatList
  data={data}
  renderItem={renderItem}
  keyExtractor={(item) => item.id.toString()}
  inverted
  maintainVisibleContentPosition={{
    minIndexForVisible: 1,
    autoscrollToTopThreshold: 10,
  }}
/>

When I am at the very bottom and prepend new items to data array, I have a smooth autoscroll animation.
However, when I am in the middle of my list (so no autoscroll triggered), it is keeping the scroll position (as expected) but during the insert of the new element, it would jump to the row above then come back which does not look really nice...

@Anfang2580
Copy link

@markoj3s how were you able to solve this? I'm facing the same issue.

@manuelruizc
Copy link

@markoj3s how did you solve this?

@markoj3s
Copy link
Author

markoj3s commented Jul 7, 2022

@Anfang2580 @manuelruizc Unfortunately I have not, but, let's hope that below PR gets merged soon...!

facebook/react-native#29466

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants