We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, the rendering of nested svg is inconsistent between Android and ios.
To Reproduce
import Svg, {Circle} from 'react-native-svg'; import React from 'react'; import {View} from 'react-native'; export default class SvgExample extends React.Component { render() { const size = 224.1; const strokeWidth = 22.41; const progressPercent = 40; const radius = (size - strokeWidth) / 2; const circum = radius * 2 * Math.PI; const svgProgress = 100 - progressPercent; const margin = 10; return ( <View style={{position: 'absolute', height: 300, width: 300, top: 90}}> <Svg height="100%" width="100%" viewBox="0 0 100 100"> <View style={{margin}}> <Svg width={size} height={size}> <Circle stroke={'blue'} fill="none" cx={size / 2} cy={size / 2} r={radius} strokeDasharray={`${circum} ${circum}`} strokeDashoffset={radius * Math.PI * 2 * (svgProgress / 100)} strokeLinecap="round" transform={`rotate(135, ${size / 2}, ${size / 2})`} strokeWidth={strokeWidth} /> </Svg> </View> </Svg> </View> ); } }
Android pixel 2 screenshot IOS 12 screenshot
Thank you
The text was updated successfully, but these errors were encountered:
Hello @lit26, I tried to reproduce that issue but couldn't.
If you still have that issue, feel free to reopen that issue. thank you.
Sorry, something went wrong.
No branches or pull requests
Question
Hi, the rendering of nested svg is inconsistent between Android and ios.
To Reproduce
Android pixel 2 screenshot
IOS 12 screenshot
Thank you
The text was updated successfully, but these errors were encountered: