react-native-skia icon indicating copy to clipboard operation
react-native-skia copied to clipboard

add dominant-baseline attribute support for Text

Open zhiqingchen opened this issue 2 years ago • 1 comments

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

image

related issue

https://github.com/react-native-svg/react-native-svg/issues/872

zhiqingchen avatar Sep 06 '22 11:09 zhiqingchen

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.

zhiqingchen avatar Sep 10 '22 00:09 zhiqingchen

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?

wcandillon avatar Sep 29 '23 03:09 wcandillon