EXPO react-native-svg错误:-“更新由RNSVGPath null管理的视图的属性'd'时发生错误。对于输入字符串:“ c”

问题描述 投票:0回答:1

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",

enter image description here

更新:

思考已找到错误的根源。在node_modules>react-native-svg>elements>Path.js>Path>render中,需要一个道具'd'-它显示为:

<RNSVGPath
 ref={this.refMethod}
 {...extractProps(propsAndStyles(props), this)}
 d={props.d}
/> 
react-native svg react-native-svg react-native-svg-charts
1个回答
0
投票

请解决此问题,请与您分享

© www.soinside.com 2019 - 2024. All rights reserved.