Flipkart / recyclerlistview

High performance listview for React Native and web!
Apache License 2.0
5.17k stars 420 forks source link

numColumns BUG #762

Open chensuhuan opened 1 year ago

chensuhuan commented 1 year ago

Run web

Problem: The list variable numColumns=2, when navigating through the reat navigation, clicking to jump to the page and returning again will cause layout errors!

expo:https://snack.expo.dev/@chensuhuan1995/hello-react-navigation-%7C-react-navigation?platform=web

Normal layout: 截屏2023-04-27 04 00 58

Click to return, layout error! 截屏2023-04-27 04 02 31

Video:

https://user-images.githubusercontent.com/131914374/234691049-e8e0f3ae-e0f6-46ea-bfdf-caa27813b4a5.mov

FlashList or MasonryFlashList ,Same error occurred

chensuhuan commented 1 year ago

https://snack.expo.dev/@chensuhuan1995/hello-react-navigation-%7C-react-navigation?platform=web

timotismjntk commented 1 year ago

I have idea, how if you just use hooks isFocused from navigation, then if isFocused is true you render the list, if not then don't render

naqvitalha commented 1 year ago

Which version of FlashList are you using? This was an issue in earlier versions and we don't expect to this to happen now unless the dimensions of the list are being changed in some unexpected way.

chensuhuan commented 1 year ago

您使用的是哪个版本的 FlashList?这是早期版本中的一个问题,我们不希望现在发生这种情况,除非列表的维度以某种意想不到的方式发生变化。

Latest version :"@shopify/flash-list": "1.4.0",

chensuhuan commented 1 year ago

您使用的是哪个版本的FlashList?这是早期版本中的一个问题,我们不希望现在发生这种情况,除了列表的维数以某种意想不到的方式式发生变化。

The old version also has new and the same problem