Skip to content
Advertisement

Failure to call AppRegistry.registerComponent

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

Answer

It is likely that you already have another React Native packager server running for another app or that the app name in AppDelegate.m and your index.js is not the same.

Try closing all terminal windows, double check the value of moduleName and run the project again.

Advertisement