gpt4 book ai didi

react-native - 在 native 应用程序中为设备自动设置调试服务器主机和端口

转载 作者:行者123 更新时间:2023-12-03 14:55:51 25 4
gpt4 key购买 nike

有没有办法在 native 应用程序中为设备自动设置调试服务器主机和端口?

我必须触发此菜单并为我的应用程序设置代理,我希望在安装应用程序时自动完成。那可能吗?

enter image description here

最佳答案

我为此写了一个小包,因为它让我发疯。看看 here :

npm i @nick-bull/react-native-debug-address

# DEBUG_HOST=127.0.0.1:8081 npx react-native start --port 8081
# or, equivalently
DEBUG_PORT=8081 npx react-native start --port 8081

npx react-native run-android --port 8081

关于react-native - 在 native 应用程序中为设备自动设置调试服务器主机和端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56563996/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com