RN中SectionListView组件的使用说明
属性
- ItemSeparatorComponent
{highlighted,leadingItem,leandingSection,section,trailingItem}
返回一个行与行之间的分割组件,不会出现在第一行之前和最后一行之后。highlighted
当前行(分割线上面👆的Item)是否是高亮状态leadingItem
当前行分配到的数据源leandingSection
目前我也没搞明白啥意思 这里是undefined
section
当前段分配到的数据源trailingItem
尾段数据
- ListEmptyCompone
没有接收参数
渲染一个cell为空时的缓冲组件 - ListFooterComponent
没有接收参数
渲染整个组件的Footer - ListHeaderComponent
没有接收参数
渲染整个组件的Header