<SectionList
renderSectionHeader={this._renderSectionHeader}
renderItem={this._renderItem}
sections={this.state.allMath}
refreshing={false}
initialNumToRender={1}
onRefresh={()=>{alert("刷新")}}
ItemSeparatorComponent={this._separatorCom}
SectionSeparatorComponent={() => <View
style={{height: 10, backgroundColor: 'blue'}}></View>}
keyExtractor={(item,index)=>("index"+index+item)}
onEndReached={(info)=>{alert("到达底部")}}
onEndReachedThreshold={0}
stickySectionHeadersEnabled={true}
/>
//刷新和加载的代码应写在哪里
登录后可查看更多问答,登录/注册