Introduction to ReactNative
ReactNative was open sourced by Facebook in 2015.
Based on JavaScript, it dynamically loads and compiles Virtual-DOM, which can run on Android, iOS, and Browser platforms at the same time.
On Android, it depends on the official open source jsc.so of webkit.org.
ReactNative environment configuration
The following only introduces the Android environment configuration under the macOS development platform [refer to ReactNative Environment Construction ]
* 安装 HomeBrew, Mac 系统的包管理器
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
* 安装 Node.js, JavaScript 的运行环境
brew install node
* 设置 npm 镜像以加速, npm 是 Node.js 的模块依赖管理工具
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
* 安装 react-native-cli, ReactNative 的命令行工具
npm install -g react-native-cli
* 安装 watchman, 监视文件系统变更的工具
brew install watchman