javascript - 调用 AppRegistry.registerComponent 失败

标签 javascript reactjs react-native

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'

The screen shot attached below please find it enter image description here

最佳答案

很可能您已经有另一个 React Native 打包服务器在为另一个应用程序运行,或者 AppDelegate.m 中的应用程序名称与您的 index.js 不同。

尝试关闭所有终端窗口,仔细检查 moduleName 的值并再次运行项目。

关于javascript - 调用 AppRegistry.registerComponent 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35449248/

相关文章:

javascript - create-react-app 的最佳 Service Worker 策略是什么?

javascript - 如何修复 TinyMCE 的样式?

javascript - Highcharts - HighCharts 导航器的特定颜色区域

javascript - Redux Thunk + ReactJS : Action creator being called but dispatch function not being called

javascript - React Native 中的 list 合并失败

javascript - 为什么使用 React Hooks、MomentJS 对象和间隔/超时更新状态不会触发重新渲染?

javascript - 在 next.js 中调试获取操作

javascript - 如何编辑material-ui-time-picker的时间选择器?

reactjs - 如何在 react 中正确使用 react 错误边界?

react-native - 当应用程序已经安装时,如何从 React Native 中的实际应用程序打开应用程序?