Comments (16)
overwrote renderCircle helped but circle position css is messed, its showing on the far right and line on the left.
from react-native-timeline-listview.
@Schwarzenegger Have you figure it out? I've got the same issue as you were...
from react-native-timeline-listview.
@Schwarzenegger I've fixed it by overriderenderCircle
from react-native-timeline-listview.
@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.
from react-native-timeline-listview.
@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.
from react-native-timeline-listview.
I also have the same problem on ios devices.
from react-native-timeline-listview.
i have some problem with icon, someone resolved?
from react-native-timeline-listview.
Hi all.
Is it happen on emulator or real device?
from react-native-timeline-listview.
in both, debug...
from react-native-timeline-listview.
this problem is related to the initialListSize property, which by default is 10
from react-native-timeline-listview.
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
Invoked on mount and layout changes with:
{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.
from react-native-timeline-listview.
any solution for this ?
from react-native-timeline-listview.
@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.
from react-native-timeline-listview.
gave up component?
from react-native-timeline-listview.
Have same problem and I can't do overwrite just like you. Any other solution for this ?
from react-native-timeline-listview.
I am also facing issue while overriding renderCircle
from react-native-timeline-listview.
Related Issues (20)
- renderDetail, NOT renderEvent
- How to add custom view HOT 1
- Modern Timeline update (aka FlatList support) HOT 1
- Add button options for timeline
- Line overlaps the icon
- Animated Line
- Not shown on android
- can we align starting point of circle main label in same line HOT 3
- fontFamily not work for titleStyle HOT 1
- Conditional Rendering of Details for a Row
- Render Circle displays icons to far right of 2 column HOT 3
- 使用renderCircle后圆环位置偏移
- collected in excellent-RN-libs
- two column timeline align columns
- ListView Deprecated HOT 5
- ListView has been removed from React Native HOT 5
- Update required to 0.60.5 HOT 3
- How to set line above the starting timeline circle?
- Is it possible to align circle to center ? HOT 1
- ERROR Invariant Violation: ListView has been removed from React Native. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-timeline-listview.