React-native: FlatList scroll implementation is not full

Created on 30 May 2017  路  3Comments  路  Source: facebook/react-native

I have a typical use-case, I need to scroll to a certain position in a FlatList that does have different elements size. How can I scroll to a certain element since I can't calculate the height of each element?
And the documentation has something like this on every function related to scrolling:

  • Note: cannot scroll to locations outside the render window without specifying the
  • getItemLayout prop.
    */

Please, advice is there any way to scroll to the custom height item.

Locked

Most helpful comment

Anyone have any idea with this issue?

All 3 comments

In 0.43.4锛孻ou can scroll to locations without specifying the getItemLayout prop, however its performance is not good. I believe the performance issue is the reason why now it must be used along with getItemLayout.

This issue looks like a question that would be best asked on StackOverflow.

StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.

Will close this as this is really a question that should be asked on StackOverflow.

Anyone have any idea with this issue?

Was this page helpful?
0 / 5 - 0 ratings