bartgryszko / bartgryszko/react-native-circular-progress

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

Open
#218 7 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
420
PR merge metrics
No merged PRs in 30d

Description

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!
```js
console.log('onAnimationComplete')}
backgroundColor="#96CBDF"
arcSweepAngle={180}
renderCap={({ center }) => (

)}
padding={10}
rotation={-90}>
{renderFillAmount}

```
Here's some screenshots!
Padding fixed this clipping issue ~
![Screen Shot 2019-11-08 at 2 54 26 PM](https://user-images.githubusercontent.com/25064365/68509889-c16fae00-0237-11ea-8c58-893f047e1023.png)

But not this one :( ~

![Screen Shot 2019-11-08 at 2 54 34 PM](https://user-images.githubusercontent.com/25064365/68509919-d51b1480-0237-11ea-836b-fe3be1126472.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.