1. According to the http://reactnative.cn/docs/0.48/getting-started.html installation environment
Problems encountered after installation: Run React-native Run-android startup encountered cannot find Assets folder, cannot find Index.android.js file .... Based on this information search to add the Assets folder, and then run a line of command will be generated in the Assets 2 files, but ultimately did not solve my problem. My environment resolution (react native version 0.50.3) steps are as follows:
Add a real-machine debug using the ADB command: ADB reverse tcp:8081 tcp:8081 and then it's fine.
If the show ADB is not an internal command, locate the Adb.exe under Platform-tools in the Android SDK directory, copy it to the tools directory, and then change the system environment to add the Platform-tools directory path to the path.
2. Download the learning instance from GitHub to the local post-unzip, command-line CD to the project directory
The first step
NPM install-g REACT-NATIVE-CLI
Second Step installation
NPM Install
Step three start