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

SvgUri can not load some of the svgs in both android and ios #2246

Open
UrvishaChandpara opened this issue Mar 22, 2024 · 0 comments
Open

SvgUri can not load some of the svgs in both android and ios #2246

UrvishaChandpara opened this issue Mar 22, 2024 · 0 comments

Comments

@UrvishaChandpara
Copy link

UrvishaChandpara commented Mar 22, 2024

SvgUri can not fetch some of svgs.

for example:
https://cdn.coinranking.com/dSCnSLilQ/hedera.svg
https://cdn.coinranking.com/tU7Skyia9/ThorChain[1].svg

npmPackages:
react-native-svg:14.1.0
react:18.2.0
react-native:0.73.4

<SvgUri
width="32"
height="32"
uri={'https://cdn.coinranking.com/dSCnSLilQ/hedera.svg'}
/>

for some svg urls it gives exception error like this
ERROR [SyntaxError: Expected ",", [ \t\r\n], or [eE] but "-" found.]
ERROR [SyntaxError: Expected ",", [ \t\r\n], or [eE] but "-" found.]
ERROR [SyntaxError: Expected ")", ",", [ \t\r\n], [0-9], or [eE] but "-" found.]
and svg not showing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant