Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在实现一个第一部分垂直和第二部分水平的列表。我怎么做。
我知道我可以将整个 sectionlist 设置为水平但不知道如何做一个特定的部分。
我找到了解决方案。首先你创建一个sectionList. 格式化section参数,使data变量是数组的数组。呈现节列表时,将每个项目呈现为flatList.
sectionList
section
data
flatList