github:https://github.com/react-native-svg/react-native-svg
安装:
yarn add [email protected] react-native-svg-uri
注意: 如果运行 yarn android 报错
Task :react-native-svg:compileDebugJavaWithJavac FAILED
尝试更换react-native-svg版本号
使用:
import SvgUri from "react-native-svg-uri";
const svg = '<svg .............> </svg>' <SvgUri svgXmlData={svg} width="60" height="60" />
标签:github,svg,uri,yarn,react,native From: https://www.cnblogs.com/tlfe/p/16640456.html