RCTWebSocketExecutor.m文件修改 localhost 為react-native 的 server 的ip------本機(jī) ip 地址(確保手機(jī)能連到本機(jī)春地址)

image.png
iOS 項(xiàng)目加載資源包為遠(yuǎn)程資源(本機(jī)ip react-native服務(wù)提供的資源包)

image.png
運(yùn)行程序
搖一搖
選擇remote js debugging
然后瀏覽器輸入 http://localhost:8081/debugger-ui/ 地址 (官網(wǎng)說的),但是我得輸入ip 才可以。
然后就可以在 console 看日志了