From fc55cb46082b084ffb4191d52cac1e654d59d321 Mon Sep 17 00:00:00 2001 From: William Candillon Date: Tue, 28 May 2024 18:16:00 +0200 Subject: [PATCH] Update SVG Image support (#2450) --- docs/docs/image-svg.md | 6 +++++- example/src/Examples/Neumorphism/index.ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/docs/image-svg.md b/docs/docs/image-svg.md index 972da258cd..e936634779 100644 --- a/docs/docs/image-svg.md +++ b/docs/docs/image-svg.md @@ -188,11 +188,15 @@ export const SVG = () => { ## SVG Support The [SVG module from Skia](https://github.com/google/skia/tree/main/modules/svg) displays SVGs as images. -Its capabilities and compliance level are pretty strong. We expect most SVG files to render correctly out of the box, especially if they come from Figma or Illustrator. However, please be aware of some of the quirks below when using it. +Text elements current won't render and any external XML elements such as XLink or CSS won't render. If your SVG doesn't render correctly and you've considered all the items below, please file [an issue](https://github.com/Shopify/react-native-skia/issues/new). +### Text + +Currently text rendering is not supported + ### CSS Styles CSS styles included in SVG are not supported. diff --git a/example/src/Examples/Neumorphism/index.ts b/example/src/Examples/Neumorphism/index.ts index 68b16f137d..0a77b0f00b 100644 --- a/example/src/Examples/Neumorphism/index.ts +++ b/example/src/Examples/Neumorphism/index.ts @@ -1 +1 @@ -export { Neumorphism } from "./Elements"; +export { Neumorphism } from "./Dashboard";