react-native-skia
react-native-skia copied to clipboard
add dominant-baseline attribute support for Text
Description
SVG file
https://wos2.58cdn.com.cn/DeFazYxWvDti/frsupload/14f68e2c98275b0e1078ca1e45b89ce5_line-stack.svg
sample code
<Canvas style={{ width, height }}>
<ImageSVG
svg={Skia.SVG.MakeFromString(svgString)}
x={0}
y={0}
width={width}
height={height}
/>
</Canvas>
rendered by react-native-skia
related issue
https://github.com/react-native-svg/react-native-svg/issues/872
https://github.com/Shopify/react-native-skia/issues/888
skia's stroke-width attribute is different with svg when set to 0, so there is a thin line.
This is not something we plan to support nor would be able to support unfortunately. Is there something we should add on the documentation at https://shopify.github.io/react-native-skia/docs/images-svg/#svg-support regarding this?