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

[iOS]: timeline line connecting two consecutive dots is not rendering perfectly.

Open jayrajkachariya opened this issue 6 years ago • 2 comments

The line connecting two dots at index 12 is not rendering in center, but slight right side. I have implemented basic scenario where i am passing time and title as props not description and extra styling.

<Timeline
        data={timelineData.map(x => ({
            time: new Date(x.timeToLeave),
            title: x.name
        }))}
/>
Screenshot 2020-03-11 at 5 28 27 PM

jayrajkachariya avatar Mar 11 '20 11:03 jayrajkachariya

That may happen if time texts have different widths. To prevent this you need to pass to Timeline timeContainerStyle prop with custom minWidth. For example, timeContainerStyle={{ minWidth: 52 }}

Eugnis avatar Mar 15 '20 13:03 Eugnis