react native命令

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。