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.
我是新来的React Native。我有SectionList并展示sectionHeader了一些物品。我想要实现的目标:如果列表中有超过 2 个元素,则只显示 2 个,并在下面绘制“全部显示”按钮。通过单击按钮,我想显示所有元素。
React Native
SectionList
sectionHeader