Eugnis/react-native-timeline-flatlist

detailContainerStyle in data object

Opened this issue · 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.

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.