beeshell icon indicating copy to clipboard operation
beeshell copied to clipboard

Topview instance is not existed. 所有弹框类的组件都报错这个

Open ojimm opened this issue 4 years ago • 3 comments

Topview instance is not existed.

ojimm avatar Mar 26 '20 14:03 ojimm

在页面初始化时(didMounted 生命周期),打开弹窗会报错,需要加个 setTimeout 延时

wxlworkhard avatar Apr 08 '20 06:04 wxlworkhard

我也遇到这个问题请问有解决吗?

iBotasky avatar Nov 12 '20 03:11 iBotasky

我这边做了这样的操作解决了这个问题。 将topview中改写AppRegistry.registerComponent方法的过程放到app自身的index中AppRegistry.registerComponent之前。 我发现包里改写的方法执行在app的index之后,所以做了这样的操作。 可能需要yarn install create-react-class

Lokizjj29 avatar Jan 13 '22 01:01 Lokizjj29