Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

销毁RN实例的时候,crash #265

@yyht800

Description

@yyht800
  1. 加载一个待RNWeb的页面
  2. 退出当前页面并销毁当前的RN实例
  3. 加载一个新的待输入框的页面
  4. App crash

错误定位:TypeError: Cannot read property getFocusController of undefined
RNCWebView 文件 line 142 aboutToDisappear方法中
第一行 this.getUIContext().getFocusController().clearFocus() this.getUIContext() is undefined

临时方案 this.getUIContext().getFocusController().clearFocus() 这一行代码放入到try catch中

Environment:

  • OS: harmony
  • OS version: 5.0.0
  • react-native version: 0.72.5
  • react-native-webview version: 13.10.2-rc.0.2.36.har

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions