beeshell
beeshell copied to clipboard
Topview instance is not existed. 所有弹框类的组件都报错这个
Topview instance is not existed.
在页面初始化时(didMounted 生命周期),打开弹窗会报错,需要加个 setTimeout 延时
我也遇到这个问题请问有解决吗?
我这边做了这样的操作解决了这个问题。 将topview中改写AppRegistry.registerComponent方法的过程放到app自身的index中AppRegistry.registerComponent之前。 我发现包里改写的方法执行在app的index之后,所以做了这样的操作。 可能需要yarn install create-react-class