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

[FlatList] scrollToIndex will scroll over bottom #13594

Closed
peixin opened this issue Apr 20, 2017 · 7 comments
Closed

[FlatList] scrollToIndex will scroll over bottom #13594

peixin opened this issue Apr 20, 2017 · 7 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@peixin
Copy link

peixin commented Apr 20, 2017

I use FlatList to do something like mobile contacts, click alphabet index to jump first item start with alphabet.

But when I use scrollToIndex jump to Z it will scroll over bottom, see below picture.

this.flatList.scrollToIndex({animated: false, index: itemIndex, viewPosition: 0});

1

When I focus FlatList again, it will scroll to right position. see below picture.

2

It has any option to control scrollToIndex not scroll over bottom? thanks.

Additional Information

  • React Native version: 0.43.3
  • Platform: iOS 10.3
  • Development Operating System: macOS Sierra 10.12.4
@hramos hramos changed the title FlatList scrollToIndex will scroll over bottom [FlatList] scrollToIndex will scroll over bottom Apr 25, 2017
@rayliao
Copy link

rayliao commented Jun 19, 2017

Same problem, Did you find some solutions yet?

@dotcink
Copy link

dotcink commented Aug 11, 2017

Same problem, only for iOS.

1 similar comment
@wj495175289
Copy link

Same problem, only for iOS.

@lbrdn
Copy link

lbrdn commented Oct 6, 2017

Anyone found a solution for this ?

@pull-bot
Copy link

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Oct 10, 2017
@patrick-ngo
Copy link

Anyone have a good solution for this?

@facebook facebook locked as resolved and limited conversation to collaborators Oct 10, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants