Eugnis / react-native-timeline-flatlist

FlatList based timeline component for React Native for iOS and Android
https://www.npmjs.com/package/react-native-timeline-flatlist
MIT License
478 stars 69 forks source link

detailContainerStyle in data object #22

Open anuragnagarkota opened 4 years ago

anuragnagarkota commented 4 years ago

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.

Eugnis commented 4 years ago

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.