我开始使用React Native工作,使用create-reactive-native-app和Exponent。这里有一个很好的开源示例列表,其中一些提到了使用Exponent。 https://github.com/ReactNativeNews/React-Native-Apps开始反应原生应用程序
我对nodejs的经验很少。我已经注意到React Native应用程序有几种可能的配置。我通常使用npm start来运行它,但这不适用于这些示例,因为它们在package.json中没有启动脚本。
以本地组件列表应用程序为例。如何在克隆和执行npm安装后执行它?
使用节点v6.11.4和NPM 3.10.10
我使用反应本地运行的Android也试过。当我使用react-native init创建一个新项目Ola2 但它不适用于下载的代码。
这里是一些更多的细节。我这样做过:NPM安装-g反应母语-CLI
npm install
react-native run-android
Scanning folders for symlinks in xxx/native-component-list/node_modules (25ms)
Android project not found. Maybe run react-native android first?
react-native android
Scanning folders for symlinks in xxx/native-component-list/node_modules (26ms)
Unrecognized command 'android'
Run react-native --help to see list of all available commands
对于任何NPM项目,你必须确保做任何事情之前运行'NPM install'。 – nbkhope
我做了'npm install' – Daniel