世博会发布错误'不应该有额外的 属性 'expo'
Expo publish Error ' should NOT have additional property 'expo'
我该如何解决这个问题,错误:验证 app.json 中的字段时出现问题。了解更多:https://docs.expo.dev/workflow/configuration/
• 不应有额外的 属性 'expo'.
这是我的app.json
{
"expo": {
"name": "MMS",
"slug": "MMS",
"version": "1.0.1",
"orientation": "portrait",
"icon": "./assets/logocBig.png",
"splash": {
"image": "./assets/logocBig.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "MMS"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/logocBig.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
},
"expo": {
"userInterfaceStyle": "automatic"
},
"description": "MMS"
}
}
移除
"expo": {
"userInterfaceStyle": "automatic"
},
查看this official doc,在app.json或app.config.json中的“expo”键下没有名为'expo'的属性。
我该如何解决这个问题,错误:验证 app.json 中的字段时出现问题。了解更多:https://docs.expo.dev/workflow/configuration/ • 不应有额外的 属性 'expo'.
这是我的app.json
{
"expo": {
"name": "MMS",
"slug": "MMS",
"version": "1.0.1",
"orientation": "portrait",
"icon": "./assets/logocBig.png",
"splash": {
"image": "./assets/logocBig.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "MMS"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/logocBig.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
},
"expo": {
"userInterfaceStyle": "automatic"
},
"description": "MMS"
}
}
移除
"expo": {
"userInterfaceStyle": "automatic"
},
查看this official doc,在app.json或app.config.json中的“expo”键下没有名为'expo'的属性。