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

请问setModuleName(String moduleName)此方法在何时调用? #18

Open
corymail opened this issue Aug 1, 2016 · 1 comment
Open

Comments

@corymail
Copy link

corymail commented Aug 1, 2016

如题,setModuleName(String moduleName)这个方法是在什么时候调用的,这里提供这个方法的作用是什么呢

@cnsnake11
Copy link
Owner

一个jsbundle里可能会有很多模块,通过js中的方法AppRegistry.registerComponent('AAA', () => AAAIndex);来注册的。

setModuleName是在原生端,来告诉reactRootView来显示哪个模块。

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

2 participants