*报错Invariant Violation: "YourAppName" has not been registered. This can happen if
检查 app.json 文件中,AppRegistry.runApplication和 AppRegistry.registerComponent 使用的名称是否一致(我的统一是是'App')
ERROR 加载新版本失败 [Invariant Violation: "YourAppName" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and AppRegistry.registerComponent wasn't called.]