React Native 调试技巧

 

一、 安卓模拟器调出Dev Setting 命令

adb shell input keyevent 82

 




二、图片不出来时,先运行此命令,再重新 run

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

 



三、debug-ui设置

http://localhost:8081/debugger-ui/

 

四、console.log 打印提示 object 解决方案

console.log(JSON.stringify(data))

 










 

转载于:https://www.cnblogs.com/wukong1688/p/10973217.html

Logo

开源鸿蒙跨平台开发社区汇聚开发者与厂商,共建“一次开发,多端部署”的开源生态,致力于降低跨端开发门槛,推动万物智联创新。

更多推荐