您的位置:首页 > Web前端 > React

react native listview 一个有用的属性,用作两列布局

2016-09-08 15:00 531 查看
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}
/>
}
/>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐