我的后端很好。我尝试了多种方法来解决此问题,但结果仍然相同。
方法
android:largeHeap="true"
添加到了AndroidMnifest.xml
我的平面列表:
<View style={{ flex:1 }}>
<FlatList
data={this.props.tops}
renderItem={this._renderItem}
keyExtractor={this._keyExtractor}
numColumns={3}
refreshControl={
<RefreshControl
refreshing = {this.state.refreshing}
onRefresh = {()=>this._onRefresh()}
/>
}
onEndReachedThreshold={thresholdLength}
onEndReached = {()=>{
this._onEndReachedThreshold()
}}
/>
</View>