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
467 stars 69 forks source link

I think it's a circle, but it's not a circle #89

Open yinminqian opened 1 week ago

yinminqian commented 1 week ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch react-native-timeline-flatlist@0.8.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-timeline-flatlist/lib/index.js b/node_modules/react-native-timeline-flatlist/lib/index.js
index 9a453c4..05c7f61 100644
--- a/node_modules/react-native-timeline-flatlist/lib/index.js
+++ b/node_modules/react-native-timeline-flatlist/lib/index.js
@@ -369,7 +369,7 @@ export default class Timeline extends PureComponent {
         let dotStyle = {
           height: dotSize,
           width: dotSize,
-          borderRadius: circleSize / 4,
+          borderRadius: circleSize / 2,
           backgroundColor: rowData.dotColor
             ? rowData.dotColor
             : this.props.dotColor

This issue body was partially generated by patch-package.