react-native-svg 使用
作者:互联网
github:https://github.com/react-native-svg/react-native-svg
安装:
yarn add react-native-svg@12.4.4 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 来源: https://www.cnblogs.com/tlfe/p/16640456.html