Reference Document: Http://reactnative.cn/docs/0.20/getting-started.html
CMD Open Typing
1.
NPM Config Set Registry https://registry.npm.taobao.org
NPM Config set Disturl https://npm.taobao.org/dist 2, NPM install-g react-native-cli 3, cmd switch to the specified project path react-native i NIT Awesomeproject 4, start service: react-native start
Run Program: react-native run-android problem: SDK reference not found: http://blog.csdn.net/hpli148/article/details/7580055 cannot find device: device is plugged in, yes Deny to compile run timeout: http://reactnative.cn/docs/0.20/linux-windows-support.html#content If you touch the
ERROR Watcher took too long to load
Error, try changing the max_wait_time value to a larger number (the file's specific path is
node_modules\react-native\packager\react-packager\src\DependencyResolver\FileWatcher\index.js
Or
node_modules/react-native/packager/react-packager/src/FileWatcher/index.js
)。
react-native Hello Word build and Beginner FAQs