1、配置環(huán)境變量
open ~/.bash_profile
source ~/.bash_profile
2袜刷、打開(kāi)iOS模擬器
open -a Simulator
3聪富、打開(kāi)安卓模擬器
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