Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ojimm opened this issue Mar 26, 2020 · 3 comments
Open

Comments

@ojimm
Copy link

ojimm commented Mar 26, 2020

Topview instance is not existed.

@wxlworkhard
Copy link
Collaborator

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

@iBotasky
Copy link

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

@Lokizjj29
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants