Closed Muljayan closed 4 years ago
React native info output:
"react": "16.8.6", "react-native": "0.60.4"
Library version: 1.2.3
src
import MySVG from './mysvg.svg';
MySVG
svgXmlData
SvgUri
Describe what you expected to happen:
import React from 'react'; import SvgUri from 'react-native-svg-uri'; import MySVG from './mysvg.svg'; const MyComponent = () => { return ( <> <SvgUri svgXmlData={MySVG} width="25" height="25" /> </> ); }; export default MyComponent;
This works now and I have no idea how. I repeated the same thing over and over again and it finally works.
Bug
Environment info
React native info output:
Library version: 1.2.3
Steps To Reproduce
src
folder of the project (I downloaded and used the homer simpson image mentioned in the documentation for the test ).import MySVG from './mysvg.svg';
MySVG
intosvgXmlData
property ofSvgUri
componentDescribe what you expected to happen:
Reproducible sample code
Error Message