简体   繁体   English

错误:在 UIManager 中找不到“ARTShape” - React native

[英]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-chartreact-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.

相关问题 React-Native-SVG 错误:不变违规:requireNativeComponent:在 UIManager 中找不到“RNSVGGroup” - React-Native-SVG Error: Invariant Violation: requireNativeComponent: "RNSVGGroup" was not found in the UIManager 安装 React Native Map。 在 UIManager 中找不到 AIRMap - Installing React Native Map. AIRMap not found in UIManager 反应本机构建错误:尝试调用虚拟方法'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrappper() - React native build error: Attempt to invoke virtual method'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrappper() 将本机UIManager.measureInWindow坐标反应为android MotionEvent坐标 - React native UIManager.measureInWindow coords to android MotionEvent coords 在 UIManager 中找不到 RNCSafeAreaView - RNCSafeAreaView was not found in the UIManager 在 UIManager 中找不到“RNCSafeAreaView” - "RNCSafeAreaView" was not found in the UIManager requireNativeComponent:在 UIManager 中找不到“RNSScreenStackHeaderConfig” - requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager React-Native.js 变量未找到错误 - React-Native .js Variable not found error 在 UIManager 中找不到 requireNativeComponent - requireNativeComponent was not found in UIManager React Native - 未找到 SetTimeout 变量 - React Native - SetTimeout variable not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM