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

请问,一个页面多个list如何渲染? #1

Open
Ehzuiq opened this issue Aug 26, 2022 · 1 comment
Open

请问,一个页面多个list如何渲染? #1

Ehzuiq opened this issue Aug 26, 2022 · 1 comment

Comments

@Ehzuiq
Copy link

Ehzuiq commented Aug 26, 2022

类似今日头条首屏顶部一个滑动菜单,每个菜单对应一个列表,从一个菜单切换回原来菜单,原菜单的数据固定在切换前的屏,而不是从新渲染。

@Ehzuiq Ehzuiq changed the title 请问,一个页面多个list如何渲染?b 请问,一个页面多个list如何渲染? Aug 26, 2022
@wes-lin
Copy link
Owner

wes-lin commented Sep 9, 2022

如果不想从新渲染,可能需要一个页面里创建多个flat-list组件,并且不同id进行区分,默认显示一个,切换的时候显示不同组件。只是提供一个思路,我具体是没实验过,期待你的实践和反馈

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

No branches or pull requests

2 participants