• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

125
Views
SVG Circle no se centrará en viewBox ract native

Tengo dos elementos circulares SVG, uno anidado dentro del otro. El círculo más externo (naranja) parece no tener ningún relleno y se superpone con el borde de viewBox.

¿Cómo puedo colocar los círculos dentro de viewBox para que no se superpongan y el círculo no se corte?

Orange Circle está siendo cortado

 <View style={{ alignContent: "center", alignSelf: "center" }}> <Svg height="250" width="250" viewBox="0 0 100 100" style={{ zIndex: 1, borderWidth: 1 }} > {/* OUTTER ORANGE CIRCLE */} <Circle stroke="#FF8540" fill="none" cx="50" cy="50" r={radius} strokeWidth="3" transform={`rotate(52.5 ${"50"} ${"50"})`} strokeDasharray={[dash, circumference - dash]} strokeLinecap="round" style={{ transition: "all 0.5s" }} /> {/* INNER TEAL CIRCLE */} <Circle stroke="#1AA39B" fill="none" cx="50" cy="50" r={radius * 0.8} strokeWidth="3" transform={`rotate(-152.5 ${"50"} ${"50"})`} strokeDasharray={[dash, circumference - dash]} strokeLinecap="round" style={{ transition: "all 0.5s" }} /> </Svg> </View>
almost 3 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error