Closed
Description
Updated RN from 0.42.3 to 0.43.4 and changed newsfeed component from listview to flatlist
So, whenever we scroll the feed the image flickers
<FlatList
ref={(c)=>this._listViewRef = c}
onViewableItemsChanged={(visibleRows, changedRows) => console.log("yes it works")}
refreshing={this.state._refreshing}
data={this.state._dataSource}
renderItem={({item})=>this._renderRow(item)}
enableEmptySections={true}
onEndReached={()=>{
if(this.state._stopLazyLoad == false){
return this.fetchNewsFeed()
}
}}
extraData={this.state}
onEndReachedThreshold={height*4}
ListHeaderComponent={()=>}
ListFooterComponent={()=>{
if(this.state._refreshing == true){
return null;
}
return <View style={{flex:1,justifyContent:'center',alignItems:'center'}}>
}}
/>
- React Native version: 0.43.4
- Platform: android
- Development Operating System: Linux
- Dev tools: Android Studio 2.3,Android SDK Tool 25.2.5