How to render an SVG from a string on expo web?

Hello,

I have some SVG strings that I would like to display.
For my app on mobile, I use SvgCss from react-native-svg to achieve that:

<SvgCss xml={svgContent} width={style.width} height={style.height} />

However, react-native-svg doesn’t seem to be working with Expo web (see this snack: react-native-svg on web? - Snack).

Is there a way with expo react-native-web to display an SVG from a string?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.