-
Notifications
You must be signed in to change notification settings - Fork 25
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
a proposed fix to the strokeCap issue number #44 #45
base: master
Are you sure you want to change the base?
a proposed fix to the strokeCap issue number #44 #45
Conversation
I think this will break this use case: After applying your changes I see this: You also have merge conflicts as I just merged #40 which ran prettier on the |
src/Pie.js
Outdated
@@ -156,7 +156,7 @@ const CleanUpCircles = ({dimensions, backgroundColor, visible}) => { | |||
} | |||
|
|||
const Pie = ({ sections, radius, innerRadius, backgroundColor, strokeCap, dividerSize }) => { | |||
strokeCapForLargeBands = dividerSize > 0 || strokeCap == 'butt' ? 'butt' : 'butt'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, that ternary doesn't make much sense as it is right now, likely a typo
@SiyabongaNzulwana ready for review again? |
@zgordon01 Yes, its ready... |
This same line is currently causing our app to crash because the is no My guess is this repo is abandoned at this point, but hopeful! |
@@ -224,7 +224,7 @@ const Pie = ({ | |||
dividerSize, | |||
}) => { | |||
strokeCapForLargeBands = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add const
before establishing the variable?
@CarolynWebster Sorry I don't use RN for years, but if you can confirm this PR works, I'll update your propose directly and merge it |
As I have mentioned that I was facing an issue with the
strokeCap={'round'}
prop, I was able to figure out what the issue might be, and I decided to push a PR for the proposed fix. NB: this is happening on"version": "1.1.2"
.This is related to issue number #44