react-native-svg和android似乎存在问题。仅在我的Android应用中抛出此错误-iOS应用似乎正常吗?该错误消息使我无法指示错误可能发生的位置。任何想法都会有所帮助...
CODE:
import { Circle } from 'react-native-svg';
<Circle
cx="0"
cy="0"
r={size / 2 - 6}
fill="rgba(255,255,255,0.7)" // Transparency
/>
"react-native": "https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz",
"react-native-svg": "9.5.3",
"react-native-svg-charts": "^5.3.0",
更新:
我思考已找到错误的根源。在node_modules>react-native-svg>elements>Path.js>Path>render
中,需要一个道具'd'-它显示为:
<RNSVGPath
ref={this.refMethod}
{...extractProps(propsAndStyles(props), this)}
d={props.d}
/>
请解决此问题,请与您分享