HarmonyOS升级后,react-native-svg闪退

react-native-svg库闪退,从0.2.3升级到0.2.5,依然是闪退,报错信息如下:

Error message:Cannot read property parentTag of undefined
SourceCode:
  this.componentManager.setParentTag(this.descriptor.parentTag);
^
Stacktrace:
  at initComponent (oh_modules/.ohpm/rnoh-svg@nuql5zi3rbivg0rtwcok+6izsb0=/oh_modules/rnoh-svg/src/main/ets/SVGView.ets:80:40)
at aboutToAppear (oh_modules/.ohpm/rnoh-svg@nuql5zi3rbivg0rtwcok+6izsb0=/oh_modules/rnoh-svg/src/main/ets/SVGView.ets:63:5)
at build (../../../foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsXNode.js:176:176)
at build (../../../foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsXNode.js:68:68)
at ComponentContent (../../../foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsXNode.js:2026:2026)
at create (oh_modules/.ohpm/@rnoh+react-native-openharmony@bob8j5zuju575xuzn64mxh+8nj0=/oh_modules/@rnoh/react-native-openharmony/src/main/ets/RNOH/CustomRNComponentFrameNodeFactory.ets:39:25)
HarmonyOS
2024-12-28 08:23:38
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
shlp

13.14.0-0.2.5版本以前是ArkTS的老版本,已经逐渐废弃了,这边建议升级更新到13.14.0-0.4.8试一下,这个是capi版本的,性能比原来的版本要好很多:https://github.com/react-native-oh-library/react-native-harmony-svg/releases/tag/13.14.0-0.4.8

分享
微博
QQ
微信
回复
2024-12-28 10:48:13
相关问题
HarmonyOS react-native-svg(CAPI)使用报错
422浏览 • 1回复 待解决
HarmonyOS react-native-webview退问题
522浏览 • 1回复 待解决
加载FFMpegAPP出现退
712浏览 • 1回复 待解决
HarmonyOS应用退问题
1178浏览 • 1回复 待解决
HarmonyOS 使用Webview会退
350浏览 • 1回复 待解决
HarmonyOS number toFixed方法退
456浏览 • 1回复 待解决
HarmonyOS 手势处理高概率退
307浏览 • 1回复 待解决
HarmonyOS 退报错 Error code:2100001
408浏览 • 1回复 待解决
HarmonyOS 适配 React native
742浏览 • 1回复 待解决
HarmonyOS PixelMap.rotate接口导致退
409浏览 • 1回复 待解决
HarmonyOS 申请短时后台任务退
406浏览 • 1回复 待解决
HarmonyOS 页面返回时应用退报错
1219浏览 • 1回复 待解决