[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





原文地址:https://www.cnblogs.com/wukong1688/p/10973217.html