RenderCap circle clips at the top of the circle, even with padding
See original GitHub issueFirst of all, incredible library! SO easy to use!
My issues is whenever I render a cap and then add some padding directly to the component, the cap circle is clipped off. The progress bar is a semi circle and when the cap is rendered either at the beginning, end, or middle, it would clip when the padding prop wasn’t being used. After adding padding, it stopped clipping at the beginning and end but not the middle.
Am I perhaps missing something?
Here’s some code!
<AnimatedCircularProgress
size={350}
width={13}
fill={fillAmount()}
tintColor={Colors.PRIMARY_WHITE}
onAnimationComplete={() => console.log('onAnimationComplete')}
backgroundColor="#96CBDF"
arcSweepAngle={180}
renderCap={({ center }) => (
<Circle
cx={center.x}
cy={center.y}
r="13"
fill={Colors.PRIMARY_WHITE}
/>
)}
padding={10}
rotation={-90}>
{renderFillAmount}
</AnimatedCircularProgress>
Here’s some screenshots!
Padding fixed this clipping issue ~
But not this one 😦 ~
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How to add cirle to react native progress bar - Stack Overflow
Are there any ways that we can add a circle to the top of the progress bar like this design. I'm using react-native-circular-progress...
Read more >Issues · bartgryszko/react-native-circular-progress · GitHub
React Native component for creating animated, circular progress with ReactART ... RenderCap circle clips at the top of the circle, even with padding....
Read more >React Native Component for Creating animated Circular ...
<AnimatedCircularProgress size={120} width={15} fill={100} tintColor="#00e0ff" backgroundColor="#3d5875" padding={10} renderCap={({ center }) => <Circle ...
Read more >Easiest CSS Radial Progress Bars - Suparn Gupta - Medium
width: @radius + @padding; .circle { // main ring position: absolute; width: @radius; height: @radius; background-color: @color; border-radius: 50%; top: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m having the same problem.
Hi, I am also facing same issue.
Any help will be appreciated.