[英]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.