Javascript 反应本机反应本机svg显示错误

Javascript 反应本机反应本机svg显示错误,javascript,reactjs,react-native,svg,Javascript,Reactjs,React Native,Svg,我试图在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"/>

我试图在
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"/>
从'react native svg'导入{SvgUri};
请检查所附图像中的
erro
r

import*as React from'React';
从“react native svg”导入{SvgCssUri};
导出默认值()=>(
);