运行react-native项目时报错。
Application FitstDemo has not been registered. This is either due to a require() error during initialization or failure to call AppRegistry.registerComponent.
第一:检查项目名是否写错了。
AppRegistry.registerComponent('MyDemo', () => MyDemo);
第二:如果没有问题
问题出现可能是服务没有开启,进入到项目目录启动服务,代码如下:
react-native start