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:
- just go to the top of the list to load more messages.
- 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
The problem
When loading many items in a FlatList with the
invertedprop, 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:
Expected behavior
If you remove the
invertedprop, you get the expected behaviour.invertedshould just make the items of the list to be displayed from bottom to top andonEndReachedto be called when reaching the top.Environment (include versions). Did this work in previous versions?