Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SvgXml was not found in 'react-native-svg' (expo web) #2111

Closed
Mhp23 opened this issue Aug 2, 2023 · 4 comments
Closed

SvgXml was not found in 'react-native-svg' (expo web) #2111

Mhp23 opened this issue Aug 2, 2023 · 4 comments
Labels
Missing repro This issue need minimum repro scenario

Comments

@Mhp23
Copy link
Contributor

Mhp23 commented Aug 2, 2023

Bug

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

@bohdanprog
Copy link
Member

Hello @Mhp23,
Do you still have that issue?
Can you share the example to reproduce that?

@bohdanprog bohdanprog added the Missing repro This issue need minimum repro scenario label Jun 12, 2024
@Mhp23
Copy link
Contributor Author

Mhp23 commented Jun 18, 2024

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

@bohdanprog
Copy link
Member

@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.

@bohdanprog
Copy link
Member

Here is the main thread.
We will inform everyone once any changes are made.

@cojo cojo mentioned this issue Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario
Projects
None yet
Development

No branches or pull requests

2 participants