question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RenderCap circle clips at the top of the circle, even with padding

See original GitHub issue

First 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 ~ Screen Shot 2019-11-08 at 2 54 26 PM

But not this one 😦 ~

Screen Shot 2019-11-08 at 2 54 34 PM

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mishacajiccommented, Nov 17, 2019

I’m having the same problem.

1reaction
git195commented, Nov 11, 2019

Hi, I am also facing same issue.

Any help will be appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bountysource
RenderCap circle clips at the top of the circle, even with padding.
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found