Open chensuhuan opened 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
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.
您使用的是哪个版本的 FlashList?这是早期版本中的一个问题,我们不希望现在发生这种情况,除非列表的维度以某种意想不到的方式发生变化。
Latest version :"@shopify/flash-list": "1.4.0",
您使用的是哪个版本的FlashList?这是早期版本中的一个问题,我们不希望现在发生这种情况,除了列表的维数以某种意想不到的方式式发生变化。
The old version also has new and the same problem
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](https://user-images.githubusercontent.com/131914374/234689222-42b997ca-3e33-431b-bb03-fe75dc5c1dba.png)
Click to return, layout error!![截屏2023-04-27 04 02 31](https://user-images.githubusercontent.com/131914374/234689591-ff621224-1133-44e1-9471-1019a38cbe3b.png)
Video:
https://user-images.githubusercontent.com/131914374/234691049-e8e0f3ae-e0f6-46ea-bfdf-caa27813b4a5.mov
FlashList or MasonryFlashList ,Same error occurred