contentContainerStyle:设置listview包裹内容的属性
<ListView
                    contentContainerStyle={{flexDirection:'row',flexWrap:'wrap'}}
                    style={{flex: 1}}
                    initialListSize={1}
                    dataSource={dataSource}
                    renderRow={this.renderProduct}
                    onEndReached={this.onEndReached.bind(this,dataState)}
                    onEndReachedThreshold={10}
                    renderFooter={this.renderFooter.bind(this,dataState)}
                    refreshControl={
                  <RefreshControl
                    refreshing={dataState.isRefreshing}
                    onRefresh={this.onRefresh.bind(this)}
                    title="加载中..."
                    colors={COLOR_REFRESH_CONTROL}
                  />
                }
                />

 

相关文章:

  • 2021-10-20
  • 2021-09-13
  • 2022-01-21
  • 2021-07-13
  • 2021-11-27
  • 2022-12-23
  • 2021-07-01
  • 2021-10-13
猜你喜欢
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-08-24
  • 2021-05-22
相关资源
相似解决方案