创建项目
react-native init 项目名
查看是否有设备连接
adb devices
运行Android工程
react-native run-android
安装Android正式包
react-native run-android --variant release
运行Ios工程
react-native run-ios
用指定设备运行Ios工程
react-native run-ios --simulator “iPhone XR”
启动服务
react-native start
清除Android缓存
gradlew clean
Android打正式包
gradlew assembleRelease
Android打测试包
gradlew installRelease
walle打包
gradlew clean assembleReleaseChannels
监听log
react-native log-android
react-native log-ios
打开调试菜单
adb shell input keyevent 82
热更新发布应用底包
pushy uploadApk path
pushy uploadIpa path
发布热更新版本
pushy bundle --platform <ios|android>
查看service 列表
adb shell service list
获取安卓id
adb shell settings get secure android_id
查看activity
adb shell dumpsys activity activities | sed -En -e ‘/Running activities/,/Run #0/p’
adb shell dumpsys activity top | grep ACTIVITY
查看进程
adb shell ps|findstr com.xxx
查看签名信息
keytool -list -v -keystore xxx.keystore