[RN] React Native 调试技巧

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))

 




mumu moniqi





 

posted @ 2019-06-04 14:03  wukong1688  阅读(477)  评论(0编辑  收藏  举报