react-native-timeline-flatlist icon indicating copy to clipboard operation
react-native-timeline-flatlist copied to clipboard

detailContainerStyle in data object

Open anuragnagarkota opened this issue 4 years ago • 1 comments

Hi I want to change the background color of description box for some data points only. But there is no option for detailContainerStyle in data object.

anuragnagarkota avatar Apr 08 '20 16:04 anuragnagarkota

Hi. The only way to do that is custom renderDetail(rowData, sectionID, rowID) function that can be passed to Timeline component as renderDetail={(rowData, sectionID, rowID)=>...} where rowData will take data for current row. Then, you can set background color depends on data with conditions.

Eugnis avatar Jul 04 '20 23:07 Eugnis