kristerkari / react-native-svg-transformer

Import SVG files in your React Native project the same way that you would in a Web application.
MIT License
1.58k stars 115 forks source link

Import local svg without extension #290

Open izolotarev opened 1 year ago

izolotarev commented 1 year ago

In documentation it says

"Import your .svg file inside a React component:

import Logo from "./logo.svg";"

But in my case it only works without extension like this:

import Logo from "./logo"

Importing with extension gives the error:

Invariant Violation: View config getter callback for component <svg> </svg> must be a function (received undefined).