Skip to content

Image Flickers when Updated from 0.42.3 to 0.43.4 and changed from listview to flatlist #13886

Closed
@bgoyal2222

Description

@bgoyal2222

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions