You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SvgXml not working in the web environment (it's ok for mobile) and seems there isn't implementation or specific export for it in ReactNativeSVG.web.ts and cause to the following issue happening:
WARNING in'*/index.tsx'export'SvgXml' (imported as 'SvgXml') was not found in'react-native-svg' (possible exports: Circle, ClipPath, Defs, Ellipse, ForeignObject, G, Image, Line, LinearGradient, Marker, Mask, Path, Pattern, Polygon, Polyline, RadialGradient, Rect, Stop, Svg, Symbol, TSpan, Text, TextPath, Use, WebShape, default)
Environment info
Expo web
Expo SDK Version: 49.0.6
Library version: 13.9.0
The text was updated successfully, but these errors were encountered:
Hi @bohdanprog,
After I faced the missing implementation for the web I used an alternative way (using Svgr to transform svg code for RN) and I haven't tested it recently but based on the main branch it seems still not available for the web
@Mhp23, I discovered that currently, we cannot utilize SvgXml in web applications. The reason behind this limitation is explained in detail here. It's a bit tricky.
Rest assured, we have this on our roadmap, and we aim to implement it at the earliest opportunity. Stay in touch for further updates.
Bug
SvgXml
not working in the web environment (it's ok for mobile) and seems there isn't implementation or specific export for it inReactNativeSVG.web.ts
and cause to the following issue happening:Environment info
Expo web
Expo SDK Version:
49.0.6
Library version: 13.9.0
The text was updated successfully, but these errors were encountered: