Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numColumns BUG #762

Open
chensuhuan opened this issue Apr 26, 2023 · 5 comments · May be fixed by #770
Open

numColumns BUG #762

chensuhuan opened this issue Apr 26, 2023 · 5 comments · May be fixed by #770

Comments

@chensuhuan
Copy link

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:

2023-04-27.04.08.11.mov

FlashList or MasonryFlashList ,Same error occurred

@timotismjntk
Copy link

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
Copy link
Contributor

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
Copy link
Author

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

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

@chensuhuan
Copy link
Author

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

The old version also has new and the same problem

shiroyk added a commit to shiroyk/recyclerlistview that referenced this issue Sep 2, 2023
@shiroyk shiroyk linked a pull request Sep 2, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants