Skip to content

infinite FlatList with inverted prop becomes crazy #1254

Description

@Sharcoux

The problem

When loading many items in a FlatList with the inverted prop, the list gets weird behaviours. The scroll moves on its own. It is also reverted whereas it shouldn't, and to top it all, some elements of the list gets inaccessible...

How to reproduce

Simplified test case

Steps to reproduce:

  1. just go to the top of the list to load more messages.
  2. repeat the process a few time, and things should start to become weird.

Expected behavior

If you remove the inverted prop, you get the expected behaviour. inverted should just make the items of the list to be displayed from bottom to top and onEndReached to be called when reaching the top.

Environment (include versions). Did this work in previous versions?

  • React Native for Web (version): 0.10.0
  • React (version): 16.5.1
  • Browser: Chrome 72.0.3626.109

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: react-nativeBug associated with upstream React Native vendor codeproject:react-native-webIssue associated with react-native-web

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions