HarmonyOS react-native-webview闪退问题
报错信息如下:
Error message:Cannot read property layoutMetrics of undefined
SourceCode:
Stack.width(this.descriptor.layoutMetrics.frame.size.width);
^
Stacktrace:
at anonymous (oh_modules/.ohpm/rnoh-webview@be7mw7jzuxdjc6emzbzsliwkofk=/oh_modules/rnoh-webview/src/main/ets/WebView.ets:561:12)
at updateFunc (/usr1/hmos_for_system/src/increment/sourcecode/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/stateMgmt.js:6661:6661)
at observeComponentCreation2 (/usr1/hmos_for_system/src/increment/sourcecode/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/stateMgmt.js:6702:1)
at initialRender (oh_modules/.ohpm/rnoh-webview@be7mw7jzuxdjc6emzbzsliwkofk=/oh_modules/rnoh-webview/src/main/ets/WebView.ets:531:3)
at initialRenderView (/usr1/hmos_for_system/src/increment/sourcecode/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/stateMgmt.js:6324:6324)
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
赞
收藏 0
回答 1
待解决
相关问题
HarmonyOS升级后,react-native-svg闪退
31浏览 • 1回复 待解决
HarmonyOS react-native-webview 13.10.2-nc.0.0.1 编译报错
200浏览 • 1回复 待解决
HarmonyOS RNOH react-native-webview H5页面的音频无法播放
53浏览 • 1回复 待解决
HarmonyOS 使用Webview会闪退
49浏览 • 1回复 待解决
HarmonyOS应用闪退问题
753浏览 • 1回复 待解决
HarmonyOS webview加载html string一直闪退
74浏览 • 1回复 待解决
HarmonyOS RN react-native-skia三方库编译通过,但是设备上RN界面快速闪退
44浏览 • 1回复 待解决
HarmonyOS 关于CustomDialog使用@Link监听数据闪退问题
62浏览 • 1回复 待解决
HarmonyOS Native C函数中有多线程交互,用napi调用会闪退
62浏览 • 1回复 待解决
HarmonyOS 与react native兼容问题
337浏览 • 1回复 待解决
HarmonyOS number toFixed方法闪退
68浏览 • 1回复 待解决
HarmonyOS @react-native-oh-tpl/react-native-view-shot增量包权限问题
58浏览 • 1回复 待解决
HarmonyOS 闪退报错 Error code:2100001
49浏览 • 1回复 待解决
HarmonyOS 关于react-native-fs问题咨询
59浏览 • 1回复 待解决
HarmonyOS 适配 React native
371浏览 • 1回复 待解决
HarmonyOS react-native-image-crop-picker使用问题
58浏览 • 1回复 待解决
HarmonyOS 连接蓝牙耳机通话,应用闪退
105浏览 • 1回复 待解决
HarmonyOS 申请短时后台任务闪退
68浏览 • 1回复 待解决
HarmonyOS PixelMap.rotate接口导致闪退
31浏览 • 1回复 待解决
HarmonyOS 页面返回时应用闪退报错
652浏览 • 1回复 待解决
HarmonyOS 分享组件无法正常使用,闪退
51浏览 • 1回复 待解决
加载FFMpeg后APP出现闪退
227浏览 • 1回复 待解决
HarmonyOS 无法安装@react-native-oh-tpl/react-native-reanimated
322浏览 • 1回复 待解决
HarmonyOS 集成@react-native-oh-tpl/react-native-spinkit报错
64浏览 • 1回复 待解决
版本升级后,需要给RNApp组件加个arkTsComponentNames白名单配置,麻烦确认一下是否加了: