I created a new project using
react-native init Wevaha
,after that I excute it work's properly then I modified sample app based on my requirement again run it works properly but the next time while running the app I am gettingthe error like' Application Wevaha has not been registered.This is either due to a require() error during intialization or failure to call
AppRegistry.registerComponent'
最佳答案
很可能您已经有另一个 React Native 打包服务器在为另一个应用程序运行,或者 AppDelegate.m 中的应用程序名称与您的 index.js 不同。
尝试关闭所有终端窗口,仔细检查 moduleName
的值并再次运行项目。
关于javascript - 调用 AppRegistry.registerComponent 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35449248/