繁体   English   中英

React Native react-native-svg 显示错误

[英]React Native react-native-svg showing error

我正在尝试在react native中使用svg ,我安装了react-native-svg ,但它显示error ,在错误代码下方。

import { SvgUri } from 'react-native-svg';


<SvgUri width="100%" height="100%" uri="http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg"/>

请检查附图中的错误erro

链接到错误图像

 import * as React from 'react'; import { SvgCssUri } from 'react-native-svg'; export default () => ( <SvgCssUri width="100%" height="100%" uri="http://thenewcode.com/assets/svg/accessibility.svg" /> );

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM