react native change color one item in FlatList after click item (instagram like)

Loading...

react native change color one item in FlatList after click item (instagram like)

react native change color one item in FlatList after click item
 index}
      ListEmptyComponent={()=> }
      onEndReached={this.handleLoadMore.bind(this)}
      onEndReachedThreshold={0.5}
      initialNumToRender={1}
/>

after render list click on item and change color item:
renderItem({item}){
return (

}

after click Icon heart change color Icon heart to red 

Solutions/Answers:

Answer 1:

The multi select example in Flatlist React Native documentation can explain how to solve your problem. Check it out here Flatlist React Native Component

References

Loading...