【发布时间】:2022-07-18 22:53:55
【问题描述】:
我正在尝试使用 eas-cli 使我的应用程序的 .aab 和 .apk 与本机反应,一切都非常好,但尽管我更改了 app.json 中的版本并更新了图像目录,在我的手机上安装应用程序会使用 expo 默认提供的图标和启动画面。我想知道如何更新它们,我已经验证我的目录没问题
app.json
{
"expo": {
"name": "xooc-numeros",
"slug": "xooc-numeros",
"version": "2.2.1",
"orientation": "portrait",
"icon": "./assets/imgs/icon1.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/imgs/splash1.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"packagerOpts": {
"sourceExts": [
"cjs"
]
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/imgs/adaptative-icon1.png",
"backgroundColor": "#000000"
},
"versionCode": 3
},
"web": {
"favicon": "./assets/imgs/adaptative-icon1.png"
},
"description": "Contar números en maya"
}
}
eas.json
{
"cli": {
"version": ">= 0.52.0"
},
"build": {
"development": {
"distribution": "internal",
"android": {
"gradleCommand": ":app:assembleDebug"
},
"ios": {
"buildConfiguration": "Debug"
}
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
【问题讨论】:
标签: android reactjs react-native expo splash-screen