Skip to content
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

Im getting a circle being cut off at the extremes parts of the circular progress (top, bottom, left and right) #293

Open
itstheandre opened this issue Sep 13, 2021 · 3 comments

Comments

@itstheandre
Copy link

I have a component that is supposed to display the circular display with the circle, just like its in the README, however at the top, left, bottom and right sections the circle gets cur off and i dont really know how to make the smaller circle appear correctly.

  <AnimatedCircularProgress
        style={{ overflow: "visible", padding: 5 }}
        size={250}
        fill={100}
        width={2}
        rotation={0}
        tintColor="red"
        backgroundColor="red"
        dashedBackground={{ width: 15, gap: 6 }}
        padding={0}
        renderCap={({ center }) => (
            <Circle
              cx={center.x}
              cy={center.y}
              r="6"
              fill={"yellow"}
            />
          ) 
        }}
      />

There's no extra configuration, but when I run this code on my code the inner circle gets cut off if the fill is 100, 75, 50 or 25 +- 2. And i dont know really know how to fix this. Ive been looking at this for 3 hours and im super stuck

Running on Expo. Version 1.3.7

@Marcoo09
Copy link

Marcoo09 commented Oct 5, 2021

I'm facing the same issue.

@Marcoo09
Copy link

Marcoo09 commented Oct 5, 2021

@itstheandre Taking a look on the doc, if you use the property padding into the AnimationCircularProgress object the error is fixed but it's not the best fix because the circular line decrease.

@AsurNikul
Copy link

I'm also facing the same issue it is cutting from all sides

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants