1、配置环境变量
open ~/.bash_profile
source ~/.bash_profile
2、打开iOS模拟器
open -a Simulator
3、打开安卓模拟器
cd ~/Library/Android/sdk/emulator
emulator -avd deviceName
4、React native
npm install -g yarn react-native-cli
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
react-native init myreactnative
cd myreactnative
react-native run-ios
react-native run-android
5、weex
npm install weex-toolkit -g
weex create my-weex
cd my-weex
npm install
npm start (weex run web)
npm run ios (weex platform add ios weex run ios)
npm run android (weex platform add android weex run android)
weex debug
6、flutter
flutter create myflutter
cd myflutter
flutter devices
flutter run