美文网首页
react native命令

react native命令

作者: glenlg | 来源:发表于2019-06-14 17:36 被阅读0次

watchman watch-del-all
react-native start --reset-cache
react-native log-android

react-native run-android
react-native run-android --variant=release
react-native run-ios --simulator="iPhone X"
react-native run-ios --simulator="iPhone Plus 8"
react-native run-ios --configuration Release (非常耗时)
react-native run-ios --configuration Release --device "iPhone"
npm start -- --reset-cache

react-native run-ios --device="iPhone XS Max2"

xcrun simctl list devices 查看设备列表.
react-native run-ios --simulator "iPhone 7 Plus” 指定模拟器

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache.
  4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.

--开启git本地服务
git instaweb --httpd=webrick

开发者菜单: adb shell input keyevent 82

相关文章

网友评论

      本文标题:react native命令

      本文链接:https://www.haomeiwen.com/subject/qjnpfctx.html