ListView在React Native 0.39.2中呈现空行
我将RN实现更新为0.39.2,并在ListView组件中获得这种奇怪的行为。见下图: 这是我的密码:ListView在React Native 0.39.2中呈现空行,listview,react-native,Listview,React Native,我将RN实现更新为0.39.2,并在ListView组件中获得这种奇怪的行为。见下图: 这是我的密码: <ListView style={{marginBottom: 50, paddingTop: 10}} onTouchMove={(e)=>{ _listViewDirtyPressEnabled = false; }} onTouchEnd={(e)=>{ _listViewDirtyPressEnabled = true; }} r
<ListView style={{marginBottom: 50, paddingTop: 10}}
onTouchMove={(e)=>{
_listViewDirtyPressEnabled = false;
}}
onTouchEnd={(e)=>{
_listViewDirtyPressEnabled = true;
}}
refreshControl={
<RefreshControl
refreshing={this.state.refreshing}
onRefresh={this.onRefresh}
/>
}
pageSize={5}
onEndReached={this.onEndReached}
dataSource={ds.cloneWithRows(this.state.calls)}
renderRow={this.renderCallRows}
automaticallyAdjustContentInsets={false}
scrollRenderAheadDistance={400}
onEndReachedThreshold={100}
initialListSize={10}
renderSeparator={(sectionID, rowID) =>
<View
key={`${sectionID}-${rowID}`}
style={[styles.separator, {marginLeft: width * 0.05}]}
/>
}
/>
{
_listViewDirtyPressEnabled=false;
}}
onTouchEnd={(e)=>{
_listViewDirtyPressEnabled=true;
}}
刷新控制={
}
页面大小={5}
onEndReached={this.onEndReached}
dataSource={ds.cloneWithRows(this.state.calls)}
renderRow={this.renderCallRows}
automaticallyAdjustContentInsets={false}
scrollRenderAheadDistance={400}
onEndReachedThreshold={100}
initialListSize={10}
renderSeparator={(sectionID,rowID)=>
}
/>
使用concat
向列表中添加新行时发生。这在RN 0.24上没有发生
谢谢好的,找到了解决方案。这实际上是一个样式问题,而不是RN Api问题 最后从每个单元格组件中删除了
flex:1