recyclerlistview icon indicating copy to clipboard operation
recyclerlistview copied to clipboard

numColumns BUG

Open chensuhuan opened this issue 2 years ago • 5 comments

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 avatar Apr 26 '23 20:04 chensuhuan

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

chensuhuan avatar Apr 26 '23 20:04 chensuhuan

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

timotismjntk avatar Jun 11 '23 23:06 timotismjntk

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.

naqvitalha avatar Jun 12 '23 15:06 naqvitalha

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

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

chensuhuan avatar Jun 20 '23 08:06 chensuhuan

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

The old version also has new and the same problem

chensuhuan avatar Jun 20 '23 08:06 chensuhuan