ReactNative创建直接运行可能出现的坑

Application demo has not been registered.This is either due to a require() error during initialization or failure to call AppRegistry.registerComponert
React Native有很多坑,这是其中一个坑,当你用终端通过React-Native init demo创建完程序后,最好将终端强制退出,再用Xcode打开程序并运行,否则可能会出现上面的错误。

你可能感兴趣的:(ReactNative创建直接运行可能出现的坑)