这篇博客用来经常更新ListView的一系列问题,请需要的朋友耐心持续关注,我会不定时更新
一、ListView第一弹 render的时候数据明显已经获取、打印出来了,但是渲染不出来,触发下拉手势才会使数据渲染。 这个体验就很无解,最后搞清楚了,是一个属性的配置
removeClippedSubviews={false}
<ListView
dataSource={
this.state.dataSource}
renderRow={
(rowData, sectionID, rowID) => this.renderRow(rowData, sectionID, rowID)}
enableEmptySections
removeClippedSubviews={
false}
style={{
flex:
1 }}
/>
感谢Issue:https://github.com/facebook/react-native/issues/1831
二、待续