1. Install the JDK first
2. Install the Android development environment
3. Install node. js
3.1 Official website Download: node-v6.9.1-linux-x64
3.2 Adding environment variables
sudo vi/etc/profile
Add the following content:
Export node_home=/home/xxx/reactnative/node-v6.9.1-linux-x64
Export path= $PATH: $NODE _home/bin
Export Node_path= $NODE _home/lib/node_modules
3.3 Adding mirrors
NPM Config Set Registry https://registry.npm.taobao.org
NPM Config set Disturl https://npm.taobao.org/dist
Use Node-v to view the node. JS version
4, installation Watchman
4.1 Installation Dependencies
sudo apt-get install autoconf automake Python-dev
4.2 Installing Watchman, if an error occurs, review the detailed documentation for installation dependencies
git clone https://github.com/facebook/watchman.git
CD Watchman
./autogen.sh
./configure
Make
sudo make install
5. Installing react-native
NPM install-g REACT-NATIVE-CLI
RN Development-linux Development Environment Setup (Ubuntu 12.04)