Open gunsela92 opened 2 years ago
+1
+1
It's because there is no Web support by default. You need to add that yourself with a custom config. Please have a look at this Pull Request for an example: https://github.com/kristerkari/react-native-svg-expo-example/pull/1
Trying out this "solution" yielded this result for me :/
./public/images/img-appTools.svg
TypeError: core$1.transform is not a function
Im trying to import a svg file to a component. Its working on android but creates error on web and ios. Im using expo and metro.config.
Error ;
Uncaught DOMException: Failed to execute 'createElement' on 'Document': The tag name provided ('/static/media/logo.6280a11f.svg') is not a valid name.
Code;
import Logo from "../../assets/logo.svg";
metro.config.js