microsoft / reactxp

Library for cross-platform app development.
https://microsoft.github.io/reactxp/
Other
8.29k stars 491 forks source link

[VirtualListView] Items disappear when scrolling #1100

Closed novi-kolacic closed 4 years ago

novi-kolacic commented 5 years ago

Hi there,

I am using the latest version of VirtualListView - 2.0 and when I am trying to scroll up/down, the items in the list are disappearing.

Device: Samsung Galaxy Tab A 10.1" Android 8.1

This is my dependency list:

"dependencies": { "lodash": "4.17.11", "react": "16.6.3", "react-dom": "16.6.3", "react-native": "0.58.6", "react-native-windows": "0.57.1", "reactxp": "1.6.1", "reactxp-navigation": "1.6.1", "reactxp-virtuallistview": "2.0.0", "resub": "1.0.13", "simplerestclients": "0.2.7", "synctasks": "0.3.3", "prop-types": "15.7.2" }

There are two cases :

  1. When skipRenderIfItemUnchanged is set to false and when animateChanges is set to false.

First time when I open the screen with the list, if I try to scroll, items will disappear. But if I click on some item, after that scrolling will be normal and items won't disappear. (invisible items will be back in normal state)

List:

Screen Shot 2019-05-31 at 3 51 53 PM

Items from store:

Screen Shot 2019-05-31 at 3 49 17 PM

Render item:

Screen Shot 2019-05-31 at 3 48 51 PM
  1. When skipRenderIfItemUnchanged is set to true and when animateChanges is set to true.

First time when I open the screen with the list, if I try to scroll, items will disappear. After that, if I try to click on some item, other items will stay invisible.

Note: Both problems won't happen if onPress() is set to Root view, but I don't want that as it is possible to use onItemSelected provided by VirtualListView.

Any ides? Thanks!

erictraut commented 5 years ago

@berickson1, any thoughts on this one?

berickson1 commented 5 years ago

I altered the TodoList sample to look basically like what you have (see below) & am unable to reproduce the issue. Can you provide an example that I can run locally?

Screen Shot 2019-07-17 at 2 52 28 AM Screen Shot 2019-07-17 at 2 56 02 AM
fbartho commented 4 years ago

@novi-kolacic -- is this still a concern? I'm going to close this since you never replied to @berickson1's request for clarification. But please feel to reply back, and I'm happy to reopen it!