React Native 如何将“usesCleartextTraffic”:true添加到Expo管理的项目中?

to94eoyn  于 6个月前  发布在  React
关注(0)|答案(1)|浏览(52)

我应该将此脚本添加到清单文件中,但在expo管理的项目中没有这样的文件。

unhi4e5o

unhi4e5o1#

在Expo app.config.js(或等效的json文件)中,添加:

"plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "usesCleartextTraffic": true
          }
        }
      ]
    ]

字符串

相关问题