[英]Error : "ARTShape" was not found in the UIManager - React native
I just upgraded my expo SDK to the last version so I faced some issue about some screens where the react-native-pie-chart & react-native-pie doesn't work I google it but I didnt found the solution for those who suggest to link the react-native-community/art that's not working in Expo .May someone suide me to solve it please我刚刚将我的 expo SDK 升级到了最新版本,所以我遇到了一些关于react-native-pie-chart和react-native-pie不起作用的屏幕的问题我用谷歌搜索,但我没有为那些建议的人找到解决方案链接在Expo中不起作用的 react-native-community/art 。请有人帮我解决它
Error:错误:
Invariant Violation: requireNativeComponent: "ARTShape" was not found in the UIManager.
不变违规:requireNativeComponent:在 UIManager 中找不到“ARTShape”。
This error is located at: in ARTShape (created by Shape) in Shape (at Pie.tsx:42)
此错误位于:in ARTShape (created by Shape) in Shape (at Pie.tsx:42)
I notice that those libraries are not working in this version so I tried to find a solution and I found it won't work on Android because it needs to be link as you are using the expo so it's not possible.我注意到这些库在这个版本中不起作用,所以我试图找到一个解决方案,我发现它在 Android 上不起作用,因为它需要链接,因为你正在使用 expo,所以这是不可能的。
Solution proposed : You can eject the project than can run it.建议的解决方案:您可以弹出项目而不是运行它。 And that's not working for me because I'm using some features of expo so I tried to install
这对我不起作用,因为我正在使用 expo 的某些功能,所以我尝试安装
expo install react-native-svg-charts
and worked 100% for me.并为我工作 100%。 I hope that's help
我希望这有帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.