-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeline not showing 'dots' when I have many elements on the list #18
Comments
@Schwarzenegger Have you figure it out? I've got the same issue as you were... |
@Schwarzenegger I've fixed it by override |
@Hulva Yes, i figured it out by overiding renderCircle like you did. Still messing it css to place the circle in the right place on all devices. |
@Schwarzenegger I've only played it on android... I didn't know that it'll display different on different device. Hope you'll find a good way to deal with it. Let me know if you do. |
I also have the same problem on ios devices. |
i have some problem with icon, someone resolved? |
Hi all. Is it happen on emulator or real device? |
in both, debug... |
this problem is related to the initialListSize property, which by default is 10 |
this problem is related to _renderCicle in circleStyle => left: this.state.x - (circleSize / 2) + ((lineWidth-1) / 2), this.state.x may be zeroed due to _renderEvent's onLayout onLayout {nativeEvent: {layout: {x, y, width, height}}} This event is fired immediately once the layout has been calculated, but the new layout may not be reflected on the screen at the time the event is received, especially if the layout animation is in progress. |
any solution for this ? |
@danielgarciasantos like I said, i overwrote renderCircle to look like this. renderCircle(rowData, sectionID, rowID) {
var circleSize = 20
var circleColor = rowData.circleColor
var lineWidth = 2
var ballPadding = (Platform.OS === 'ios') ? width/1.11 : width/1.10
return (
<View style={{
width: 22,
height: 22,
borderRadius: 50,
backgroundColor: circleColor,
right: ballPadding
}} />
)
} And the component <Timeline
style={timelineScreenStyle.list}
data={this.state.data}
timeContainerStyle={{minWidth:0}}
detailContainerStyle={timelineScreenStyle.detailContainerStyle}
separator={false}
innerCircle={'none'}
lineWidth={2}
renderDetail={this.renderDetail}
renderCircle={this.renderCircle}
descriptionStyle={{color:'gray'}}
enableEmptySections={true}
options={{
style:{paddingTop: 5}
}}
circleSize={22}
/> It worked smooth for me on Android and IOs after this. |
gave up component? |
Have same problem and I can't do overwrite just like you. Any other solution for this ? |
I am also facing issue while overriding renderCircle |
I'm having this problem on my android/ios, when I create a timeline with more than 10 elements the 'dots' start not showing up
I've already tried setting up minWidth on timeContainerStyle
The text was updated successfully, but these errors were encountered: