gpt4 book ai didi

react-native - 不变性违规 : requireNativeComponent: "RNSVGPath" was not found in the UIManager

转载 作者:行者123 更新时间:2023-12-02 00:57:16 32 4
gpt4 key购买 nike

我已经尝试使用 React-native Link 以及手动链接,但错误仍然存​​在。
React-native-svg 版本:8.0.8

最佳答案

请参阅此处的讨论和解决方案:https://github.com/react-native-community/react-native-svg/issues/834

react-native link is missing the last step. it is not adding "new SvgPackage()"

Open up `android/app/src/main/java/[...]/MainApplication.java Add new SvgPackage() to the list returned by the getPackages() method. Add a comma to the previous item if there's already something there.

this is a bug and need to be fixed.





In iOS this bug appeared in 7.0.2. To fix, in xcode go to Your_Project / Build Phases / Link Binary With Libraries and add "libRNSVG.a"

关于react-native - 不变性违规 : requireNativeComponent: "RNSVGPath" was not found in the UIManager,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53326897/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com